diff options
author | Taehee Yoo <ap420073@gmail.com> | 2019-07-06 01:05:46 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-08 15:53:25 -0700 |
commit | 44e3725943b706d3625ad91b1a1069a18fd0775c (patch) | |
tree | 488738b885a53c51e1cb21ab57207d1959240e32 /net/openvswitch/dp_notify.c | |
parent | f714ecc9cf16a63066badbc85bfbfff9af85a8b7 (diff) |
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>
Diffstat (limited to 'net/openvswitch/dp_notify.c')
-rw-r--r-- | net/openvswitch/dp_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/dp_notify.c b/net/openvswitch/dp_notify.c index 53cf07d141b4..7af0cde8b293 100644 --- a/net/openvswitch/dp_notify.c +++ b/net/openvswitch/dp_notify.c @@ -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); } } |