Commits
Grygorii Strashko committed cc1f466c84f
net: ethernet: ti: introduce j721e virt cpsw-nuss mac driver This patch introduces virtual CPSW MAC driver which implements standard Linux netdev interface and uses RPC services provided by rpmsg-kdrv Eth switch device which provides RPC interface to the Eth switch firmware running on the one of R5F cores and fully controls J721E CPSW9G hardware module. Once probed the virtual CPSW MAC driver attaches itself to the Eth switch FW and requests: - TX and RX UDMA resources; - set supported fetures; - MAC address. After this the virtual CPSW MAC driver allows to receive and send regular nework traffic using dedicated UDMA TX channel and RX flow allocated for Linux Host by Eth switch FW through the standard Linux netdev intf. Hence, CPSW9G HW does not support redirection of broadcast traffic to muliple CPU cores - it's required that Eth switch FW should implemnt ARP support for cases when remote network hosts send ARP request to obtain MAC address of the virtual CPSW MAC device. For such purposes the virtual CPSW MAC driver registers itself for IPv4 address assignment notifications and passes pairs of <IP>:<MAC> to the Eth switch FW. Supported features: - ifconfig dev up/down - ifconfig dev <IP> - ifconfig dev hw ether <MAC> -- only when intf is down - ethtool -k dev Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>