aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorAdam Ludkiewicz <adam.ludkiewicz@intel.com>2019-02-06 18:08:25 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-04-16 18:11:08 -0400
commit06b6e2a2333eb3581567a7ac43ca465ef45f4daa (patch)
treeaab62fe0170b207b9cc5934819b01a498ba8ff92 /drivers/net/ethernet
parentf38d1347cd0bf936b184ea0e41bce2b3b769f141 (diff)
i40e: Able to add up to 16 MAC filters on an untrusted VF
This patch fixes the problem with the driver being able to add only 7 multicast MAC address filters instead of 16. The problem is fixed by changing the maximum number of MAC address filters to 16+1+1 (two extra are needed because the driver uses 1 for unicast MAC address and 1 for broadcast). Signed-off-by: Adam Ludkiewicz <adam.ludkiewicz@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index 831d52bc3c9a..71cd159e7902 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -2454,8 +2454,10 @@ error_param:
2454 (u8 *)&stats, sizeof(stats)); 2454 (u8 *)&stats, sizeof(stats));
2455} 2455}
2456 2456
2457/* If the VF is not trusted restrict the number of MAC/VLAN it can program */ 2457/* If the VF is not trusted restrict the number of MAC/VLAN it can program
2458#define I40E_VC_MAX_MAC_ADDR_PER_VF 12 2458 * MAC filters: 16 for multicast, 1 for MAC, 1 for broadcast
2459 */
2460#define I40E_VC_MAX_MAC_ADDR_PER_VF (16 + 1 + 1)
2459#define I40E_VC_MAX_VLAN_PER_VF 8 2461#define I40E_VC_MAX_VLAN_PER_VF 8
2460 2462
2461/** 2463/**