]> git.baikalelectronics.ru Git - uboot.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)
commit23b8444b36fd9fc6d9d539b8ea55af20b3380c89
tree6f39e3521f10319db8f029132b357798a2d906a6
parent834ae8985e9f8d9a6b4c864ba4fed07612c11718
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