diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/if_link.h | 1 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 119130e9298b..da4929927f69 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h | |||
| @@ -14,5 +14,6 @@ struct ifla_vf_info { | |||
| 14 | __u32 linkstate; | 14 | __u32 linkstate; |
| 15 | __u32 min_tx_rate; | 15 | __u32 min_tx_rate; |
| 16 | __u32 max_tx_rate; | 16 | __u32 max_tx_rate; |
| 17 | __u32 rss_query_en; | ||
| 17 | }; | 18 | }; |
| 18 | #endif /* _LINUX_IF_LINK_H */ | 19 | #endif /* _LINUX_IF_LINK_H */ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index bf6d9df34d7b..13acb3d8ecdd 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -878,6 +878,11 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev, | |||
| 878 | * int (*ndo_set_vf_link_state)(struct net_device *dev, int vf, int link_state); | 878 | * int (*ndo_set_vf_link_state)(struct net_device *dev, int vf, int link_state); |
| 879 | * int (*ndo_set_vf_port)(struct net_device *dev, int vf, | 879 | * int (*ndo_set_vf_port)(struct net_device *dev, int vf, |
| 880 | * struct nlattr *port[]); | 880 | * struct nlattr *port[]); |
| 881 | * | ||
| 882 | * Enable or disable the VF ability to query its RSS Redirection Table and | ||
| 883 | * Hash Key. This is needed since on some devices VF share this information | ||
| 884 | * with PF and querying it may adduce a theoretical security risk. | ||
| 885 | * int (*ndo_set_vf_rss_query_en)(struct net_device *dev, int vf, bool setting); | ||
| 881 | * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb); | 886 | * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb); |
| 882 | * int (*ndo_setup_tc)(struct net_device *dev, u8 tc) | 887 | * int (*ndo_setup_tc)(struct net_device *dev, u8 tc) |
| 883 | * Called to setup 'tc' number of traffic classes in the net device. This | 888 | * Called to setup 'tc' number of traffic classes in the net device. This |
| @@ -1099,6 +1104,9 @@ struct net_device_ops { | |||
| 1099 | struct nlattr *port[]); | 1104 | struct nlattr *port[]); |
| 1100 | int (*ndo_get_vf_port)(struct net_device *dev, | 1105 | int (*ndo_get_vf_port)(struct net_device *dev, |
| 1101 | int vf, struct sk_buff *skb); | 1106 | int vf, struct sk_buff *skb); |
| 1107 | int (*ndo_set_vf_rss_query_en)( | ||
| 1108 | struct net_device *dev, | ||
| 1109 | int vf, bool setting); | ||
| 1102 | int (*ndo_setup_tc)(struct net_device *dev, u8 tc); | 1110 | int (*ndo_setup_tc)(struct net_device *dev, u8 tc); |
| 1103 | #if IS_ENABLED(CONFIG_FCOE) | 1111 | #if IS_ENABLED(CONFIG_FCOE) |
| 1104 | int (*ndo_fcoe_enable)(struct net_device *dev); | 1112 | int (*ndo_fcoe_enable)(struct net_device *dev); |
