]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dsa: allow rcv() and xmit() to be optional
authorTim Harvey <tharvey@gateworks.com>
Wed, 30 Nov 2022 17:42:47 +0000 (09:42 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:22:08 +0000 (14:22 -0500)
commit54d11e2019b73758070632d695cf47f3d5fbf108
tree6f39e3521f10319db8f029132b357798a2d906a6
parent43c2a00a14a7e4567b156a2345870d008485da3c
net: dsa: allow rcv() and xmit() to be optional

Allow rcv() and xmit() dsa driver ops to be optional in case a driver
does not care to mangle a packet as in U-Boot only one network port is
enabled at a time and thus no packet mangling is necessary.

Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
net/dsa-uclass.c