keystone2: net: add mcast function to keyston2 Ethernet driver
PATCH 1/1 keystone2: net: add mcast function to keyston2 Ethernet driver
The MCAST_TFTP support requires that network drivers has mcast functon implemented. This commit adds dummy keystone2_eth_bcast_addr() to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty.
--- drivers/net/keystone_net.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/net/keystone_net.c +10 -0
@@ -511,6 +511,13 @@ static int keystone2_eth_rcv_packet(struct eth_device *dev)return pkt_size; } +#ifdef CONFIG_MCAST_TFTP +static int keystone2_eth_bcast_addr (struct eth_device *dev,u32 ip,u8 set) +{ +return 0 ; +} +#endif +/* * This function initializes the EMAC hardware. */
@@ -536,6 +543,9 @@ int keystone2_emac_initialize(struct eth_priv_t *eth_priv) dev->halt = keystone2_eth_close; dev->send = keystone2_eth_send_packet; dev->recv = keystone2_eth_rcv_packet; +#ifdef CONFIG_MCAST_TFTP + dev->mcast = keystone2_eth_bcast_addr; +#endif eth_register (dev);
Signature · 1 line
1.9.1
PATCH 1/1 keystone2: net: add mcast function to keyston2 Ethernet driver
Quoted 6 lines · Vitaly Andrianov
The
MCAST_TFTPsupport requires that network drivers has mcast functon implemented. This commit adds dummykeystone2_eth_bcast_addr()to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty.Signed-off-by Vitaly Andrianov <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150714/eea7d5d5/attachment.sig>
PATCH 1/1 keystone2: net: add mcast function to keyston2 Ethernet driver
In reply to Vitaly AndrianovHi Vitaly,
Quoted 7 lines · Vitaly Andrianov
The
MCAST_TFTPsupport requires that network drivers has mcast functon implemented. This commit adds dummykeystone2_eth_bcast_addr()to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty.Signed-off-by Vitaly Andrianov <[email protected]>---
Quoted 8 lines · Vitaly Andrianov
The
MCAST_TFTPsupport requires that network drivers has mcast functon implemented. This commit adds dummykeystone2_eth_bcast_addr()to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty.Signed-off-by Vitaly Andrianov <[email protected]>Reviewed-by Tom Rini <[email protected]>Acked-by Joe Hershberger <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150728/521146aa/attachment.sig>