linux/drivers/staging
Ioana Ciornei 70476feb62 staging: dpaa2-ethsw: check if there is space for a new VLAN
Avoid getting into a WARNING as below by checking, while in the prepare
state of the transactional operation, if there is space for a new VLAN.
If we reached the maximum number, return an appropriate error.

[ 6503.657564] eth3: Commit of object (id=1) failed.
[ 6503.657588] WARNING: CPU: 2 PID: 17144 at net/switchdev/switchdev.c:277 switchdev_port_obj_add_now+0xcc/0x110
...
[ 6503.657628] x1 : 70887ce26695c500 x0 : 0000000000000000
[ 6503.657630] Call trace:
[ 6503.657633]  switchdev_port_obj_add_now+0xcc/0x110
[ 6503.657635]  switchdev_port_obj_add+0x40/0xc0
[ 6503.657638]  br_switchdev_port_vlan_add+0x50/0x78
[ 6503.657640]  __vlan_add+0x2dc/0x758
[ 6503.657642]  nbp_vlan_add+0xc0/0x180
[ 6503.657644]  br_vlan_info.isra.0+0x68/0x128
[ 6503.657646]  br_process_vlan_info+0x224/0x2f8
[ 6503.657647]  br_afspec+0x158/0x188
[ 6503.657649]  br_setlink+0x1a4/0x290

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20200721091919.20394-7-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-21 16:53:34 +02:00
..
android staging: ion: fix common struct sg_table related issues 2020-06-25 16:34:54 +02:00
axis-fifo staging: axis-fifo: Fix parenthesis alignment 2020-04-13 08:55:30 +02:00
board
clocking-wizard staging: Replace HTTP links with HTTPS ones 2020-07-20 10:22:47 +02:00
comedi Linux 5.8-rc6 2020-07-20 09:37:31 +02:00
emxx_udc
fbtft staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string 2020-05-22 10:48:32 +02:00
fieldbus
fsl-dpaa2 staging: dpaa2-ethsw: check if there is space for a new VLAN 2020-07-21 16:53:34 +02:00
fwserial
gasket staging: gasket: core: Fix a coding style issue in gasket_core.c 2020-07-15 16:05:14 +02:00
gdm724x staging: gdm724x: remove redundant assignment to pointer 'w' 2020-04-13 08:55:31 +02:00
goldfish
greybus treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
gs_fpgaboot staging: Replace HTTP links with HTTPS ones 2020-07-20 10:22:47 +02:00
iio iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
kpc2000 staging: kpc2000: kpc_dma: Remove additional goto statements 2020-07-01 15:44:26 +02:00
ks7010 staging: ks7010: fix ks_wlan_start_xmit()'s return type 2020-06-29 09:28:27 +02:00
media Kbuild updates for v5.8 (2nd) 2020-06-13 13:29:16 -07:00
most staging: most: sound: remove overcautious argument checking 2020-06-25 15:41:17 +02:00
mt7621-dma
mt7621-dts staging: mt7621-pci: fix PCIe interrupt mapping 2020-04-13 14:49:18 +02:00
mt7621-pci staging: mt7621-pci: initialize 'n' variable when it is declared 2020-04-16 12:33:02 +02:00
mt7621-pci-phy staging: mt7621-pci-phy: dt: bindings: remove bindings txt file 2020-04-13 14:49:17 +02:00
mt7621-pinctrl staging: mt7621-pinctrl: Use correct pointer type argument for sizeof 2020-04-23 13:36:20 +02:00
netlogic
nvec Staging: nvec: Replace HTTP links with HTTPS ones 2020-07-10 13:52:46 +02:00
octeon staging/octeon: fix up merge error 2020-03-30 17:22:01 -07:00
octeon-usb
olpc_dcon
pi433 staging: pi433: fix error return code in pi433_probe() 2020-05-05 12:31:18 +02:00
qlge staging: qlge/qlge_main.c: Replace depracated MSI API. 2020-07-17 12:08:44 +02:00
ralink-gdma
rtl8188eu staging: rtl8188eu: add spaces around operators in header files 2020-07-20 10:22:47 +02:00
rtl8192e staging: rtl8192e: add proper code indent 2020-07-21 16:52:47 +02:00
rtl8192u staging: rtl8192u: fix a dubious looking mask before a shift 2020-07-17 12:08:44 +02:00
rtl8712 staging: rtl*/security: Use static const in array declarations 2020-07-17 12:08:44 +02:00
rtl8723bs staging: rtl*/security: Use static const in array declarations 2020-07-17 12:08:44 +02:00
rts5208 staging: rts5208: rtsx: Replace depracated MSI API 2020-07-21 16:52:47 +02:00
sm750fb staging: sm750fb: Add names to proc_setBLANK args 2020-05-29 12:35:59 +02:00
speakup Staging: speakup: Replace HTTP links with HTTPS ones 2020-07-13 15:36:31 +02:00
unisys staging: unisys: visorhba: Correct a typo in comment 2020-04-13 08:55:32 +02:00
vc04_services Staging: vc04_services: Fix unsigned int warnings 2020-07-15 16:03:32 +02:00
vme
vt6655 staging: vt6655: Use fallthrough pseudo-keyword 2020-07-10 13:52:46 +02:00
vt6656 staging: vt6655: Use fallthrough pseudo-keyword 2020-07-10 13:52:46 +02:00
wfx staging: wfx: Get descriptors for GPIOs 2020-07-10 13:51:22 +02:00
wlan-ng staging: wlan-ng: Fix alignment to match open parenthesis 2020-07-21 16:52:47 +02:00
Kconfig wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00