]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:30 +0000 (11:18 +0200)
commit65c70dc105f7f393552a74f98fee7dde66ec989d
treea21bf938f41348f7aafb206564438f95936296d6
parent2cb4c89861ca48ec1d70624ac064e89a92468036
ice: Ignore EEXIST when setting promisc mode

commit d13948f7d7bda7fa96a6098ef03f3cddaac59d6a upstream.

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: a3fba1d82808 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ice/ice_switch.c