]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Ignore EEXIST when setting promisc mode
authorGrzegorz Siwik <grzegorz.siwik@intel.com>
Fri, 12 Aug 2022 13:25:48 +0000 (15:25 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 17 Aug 2022 16:30:23 +0000 (09:30 -0700)
commitc30fa337162d8b1bcaf6f043ca42f9bd57d27018
treece4f5e1e9c3f4771b46050d95e7d530d4799a5d6
parent6f3426743bd89c75d1ca27563c95085564afa19d
ice: Ignore EEXIST when setting promisc mode

Ignore EEXIST error when setting promiscuous mode.
This fix is needed because the driver could set promiscuous mode
when it still has not cleared properly.
Promiscuous mode could be set only once, so setting it second
time will be rejected.

Fixes: 6a1be313400b ("ice: Add support for PF/VF promiscuous mode")
Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com>
Link: https://lore.kernel.org/all/CAK8fFZ7m-KR57M_rYX6xZN39K89O=LGooYkKsu6HKt0Bs+x6xQ@mail.gmail.com/
Tested-by: Jaroslav Pulchart <jaroslav.pulchart@gooddata.com>
Tested-by: Igor Raits <igor@gooddata.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c