net/sfc: set multicast address list in started state only
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 9 Mar 2017 16:21:30 +0000 (16:21 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:23 +0000 (18:59 +0200)
commit295f647a38a2680de89f299adc1a50681240405a
treef4cff678349ecabc716b10231c6566bba75fd803
parent8cb45c97d3961921df8dcf74a3739130b8c27d79
net/sfc: set multicast address list in started state only

According to 'libefx' API requirements, one is allowed to
apply multicast address list to the port in started state
only, otherwise the new array should be copied to a local
storage in order to be applied during the next port start

Coverity issue: 141296
Fixes: 0fa0070e4391 ("net/sfc: support multicast addresses list controls")

Fixes: e9ddf37a507d ("net/sfc: fix setting empty multicast list")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_ethdev.c
drivers/net/sfc/sfc_port.c