i40e: ignore duplicate port VLAN requests
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 27 Apr 2015 18:57:10 +0000 (14:57 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Jul 2015 01:26:41 +0000 (18:26 -0700)
commit85927ec1b369c880407aa82eba70d49c04c35062
tree5c46ef5b013ecd9f596f295733159acb86a3ea84
parent973371da4d66b96736143bd3f2b2ff2331faae8f
i40e: ignore duplicate port VLAN requests

If user attempts to set a port VLAN on a VF that already has the same
port VLAN configured, the driver will go through a completely
unnecessary flurry of filter removals and filter adds. Just check for
this condition and return success instead of doing a bunch of busywork.

Change-ID: Ia1a9e83e6ed48b3f4658bc20dfc6af0cf525d54a
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c