New upstream version 18.02
[deb_dpdk.git] / kernel / linux / kni / ethtool / igb / igb_vmdq.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*******************************************************************************
3
4   Intel(R) Gigabit Ethernet Linux driver
5   Copyright(c) 2007-2013 Intel Corporation.
6
7   Contact Information:
8   e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
9   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
10
11 *******************************************************************************/
12
13 #ifndef _IGB_VMDQ_H_
14 #define _IGB_VMDQ_H_
15
16 #ifdef CONFIG_IGB_VMDQ_NETDEV
17 int igb_vmdq_open(struct net_device *dev);
18 int igb_vmdq_close(struct net_device *dev);
19 netdev_tx_t igb_vmdq_xmit_frame(struct sk_buff *skb, struct net_device *dev);
20 struct net_device_stats *igb_vmdq_get_stats(struct net_device *dev);
21 void igb_vmdq_set_rx_mode(struct net_device *dev);
22 int igb_vmdq_set_mac(struct net_device *dev, void *addr);
23 int igb_vmdq_change_mtu(struct net_device *dev, int new_mtu);
24 void igb_vmdq_tx_timeout(struct net_device *dev);
25 void igb_vmdq_vlan_rx_register(struct net_device *dev,
26                                  struct vlan_group *grp);
27 void igb_vmdq_vlan_rx_add_vid(struct net_device *dev, unsigned short vid);
28 void igb_vmdq_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid);
29 void igb_vmdq_set_ethtool_ops(struct net_device *netdev);
30 #endif /* CONFIG_IGB_VMDQ_NETDEV */
31 #endif /* _IGB_VMDQ_H_ */