]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: add dsa_is_normal_port helper
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Sat, 11 Mar 2017 21:12:58 +0000 (16:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:54:07 +0000 (23:54 -0700)
commit67699878a5763fa39ac0f90276eee823c07ad3b7
treed7b16a373fa4440f89d323dddf424a62d046e0af
parent4eeb14c4f95534defd63090c28f4810c820ce683
net: dsa: add dsa_is_normal_port helper

Introduce a dsa_is_normal_port helper to check if a given port is a
normal user port as opposed to a CPU port or DSA link.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h