linux_dsm_epyc7002/drivers/net/ethernet/broadcom/genet
Florian Fainelli 6f89421180 net: bcmgenet: Fix sparse warnings in bcmgenet_put_tx_csum()
skb->protocol is a __be16 which we would be calling htons() against,
while this is not wrong per-se as it correctly results in swapping the
value on LE hosts, this still upsets sparse. Adopt a similar pattern to
what other drivers do and just assign ip_ver to skb->protocol, and then
use htons() against the different constants such that the compiler can
resolve the values at build time.

Fixes: 1c1008c793 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-04 11:07:21 -04:00
..
bcmgenet_wol.c net: bcmgenet: remove handling of wol interrupts from isr0 2017-03-13 21:51:50 -07:00
bcmgenet.c net: bcmgenet: Fix sparse warnings in bcmgenet_put_tx_csum() 2018-04-04 11:07:21 -04:00
bcmgenet.h net: bcmgenet: Fix coalescing settings handling 2018-03-30 10:03:36 -04:00
bcmmii.c net: bcmgenet: Avoid calling platform_device_put() twice in bcmgenet_mii_exit() 2017-11-01 11:56:14 +09:00
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00