Signed-off-by: Jiri Pirko <j...@resnulli.us> Acked-by: Scott Feldman <sfel...@cumulusnetworks.com> --- include/linux/netdevice.h | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7ee070f..b2c3ff0 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -750,6 +750,13 @@ struct netdev_phys_item_id { unsigned char id_len; }; +static inline bool netdev_phys_item_ids_match(struct netdev_phys_item_id *id1, + struct netdev_phys_item_id *id2) +{ + return id1->id_len == id2->id_len && + !memcmp(id1->id, id2->id, id1->id_len); +} + typedef u16 (*select_queue_fallback_t)(struct net_device *dev, struct sk_buff *skb); -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev