net: openvswitch: use netif_ovs_is_port() instead of opencode

Use netif_ovs_is_port() function instead of open code.
This patch doesn't change logic.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Taehee Yoo 2019-07-06 01:05:46 +09:00 committed by David S. Miller
parent f714ecc9cf
commit 44e3725943
2 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ void ovs_dp_notify_wq(struct work_struct *work)
if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL)
continue;
if (!(vport->dev->priv_flags & IFF_OVS_DATAPATH))
if (!(netif_is_ovs_port(vport->dev)))
dp_detach_port_notify(vport);
}
}