]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Use existing shift/masks
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 20 Oct 2017 21:39:43 +0000 (14:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 02:06:47 +0000 (03:06 +0100)
commitce64870086abba0d40bcbee1593fe8c2de27e001
treeb51de3fa2ce9be8d2b66f8186301599e9a5034a5
parent3271992aa484fc35191c1e1eb6908f64d2507f30
net: dsa: bcm_sf2: Use existing shift/masks

Instead of open coding the shift for the IP protocol, IP fragment bit
etc. define and/or use existing constants to that end.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2_cfp.c
drivers/net/dsa/bcm_sf2_regs.h