A Sydney police officer has been suspended after abusive posts were directed at New South Wales Greens MP Jenny Leong on social media.

An investigation was launched into what Ms Leong said were racist and sexist remarks made about her on Facebook, in response to a bill she had introduced in State Parliament last month.

The bill aims to end the use of drug detection dogs in public places without a warrant.

The Police Integrity Commission (PIC) was tasked with examining "whether there was any police misconduct involved in [the] comments made on social media," according to a statement made on Thursday.

"We believe that is the right body to investigate this matter," Ms Leong said.

"What we need to see ... if it is found that police are involved in this matter, that it shows that it is unacceptable."

Ms Leong said she had received an outpouring of support since writing to the police commissioner with claims a serving police officer had attacked her, while other officers had 'liked' the offending posts.

Her office wrote: "A person we suspect to be a police officer going by the pseudonym 'Jack Zane' commented: 'Wow Jenny. It was clearly a mistake when your father spotted your mother across a crowded [swamp] and dragged her back to his hut to make you," in response to a photo she posted of police with drug detection dogs.

Ms Leong also said the account posted: "Her daddy was a swamp monkey".

New South Wales Police said no other comments will be made until the PIC completes its investigation.