From: Roopa Prabhu <roprabhu@xxxxxxxxx> This patch adds the following rtnl_link_ops to set and get MAC and VLAN filters set_rx_addr_filter - to set address filter set_rx_vlan_filter - To set vlan filter get_rx_addr_filter_size - To get address filter size get_rx_vlan_filter_size - To get vlan filter size fill_rx_addr_filter - To fill addr filter fill_rx_vlan_filter - To fill vlan filter Signed-off-by: Roopa Prabhu <roprabhu@xxxxxxxxx> Signed-off-by: Christian Benvenuti <benve@xxxxxxxxx> Signed-off-by: David Wang <dwang2@xxxxxxxxx> --- include/net/rtnetlink.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 678f1ff..dcb26bd 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h @@ -78,6 +78,19 @@ struct rtnl_link_ops { int (*get_tx_queues)(struct net *net, struct nlattr *tb[], unsigned int *tx_queues, unsigned int *real_tx_queues); + + int (*set_rx_addr_filter)(struct net_device *dev, + struct nlattr *tb[]); + int (*set_rx_vlan_filter)(struct net_device *dev, + struct nlattr *tb[]); + size_t (*get_rx_addr_filter_size)( + const struct net_device *dev); + size_t (*get_rx_vlan_filter_size)( + const struct net_device *dev); + int (*fill_rx_addr_filter)(struct sk_buff *skb, + const struct net_device *dev); + int (*fill_rx_vlan_filter)(struct sk_buff *skb, + const struct net_device *dev); }; extern int __rtnl_link_register(struct rtnl_link_ops *ops); -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html