summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2013-11-28 06:39:37 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-01-06 02:13:22 -0800
commit567472640c6eb6e9b0cfe1bf91bb58507f9c77e5 (patch)
treec5ff1935c262b3531ff7ab92f26fc7d3b025f862
parentb141d6196c748796993890f461dd83c9657ee616 (diff)
downloadlinux-567472640c6eb6e9b0cfe1bf91bb58507f9c77e5.tar.gz
linux-567472640c6eb6e9b0cfe1bf91bb58507f9c77e5.tar.bz2
linux-567472640c6eb6e9b0cfe1bf91bb58507f9c77e5.zip
i40e: Do not enable default port on the VEB
Enabling the default port on the VEB causes all outgoing traffic from virtual functions to be copied to the physical function. The default port is only supposed to be used if you wish to bridge the physical function to a SW switch such as Open vSwitch or the Linux bridge. That allows the SW switch to route traffic to VMs that are not using a virtual function. Eventually we'll want to implement the ndo_fdb_add, ndo_fdb_del, and ndo_fdb_dump functions. The ndo_fdb_add function would set the default port on the VEB in those cases where the MAC/VLAN address filters have overflowed. Normally we would not want to use it. Change-Id: I3990f0384fff2840c4e43bc0955dd0b701380852 Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index d0b20465b454..c0d7fe6ef2eb 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -6903,7 +6903,7 @@ void i40e_veb_release(struct i40e_veb *veb)
**/
static int i40e_add_veb(struct i40e_veb *veb, struct i40e_vsi *vsi)
{
- bool is_default = (vsi->idx == vsi->back->lan_vsi);
+ bool is_default = false;
bool is_cloud = false;
int ret;