OSDN Git Service

net: mscc: ocelot: use pretty names for IPPROTO_UDP and IPPROTO_TCP
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 3 Mar 2022 14:01:21 +0000 (16:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 09:21:23 +0000 (09:21 +0000)
commitc3cde44f3c6e44ce42368066dede0bc3c9b1952a
treea37cdec5ba094927b39675487267c47cc25e4617
parentc5a0edaeb9e1eb6dc5fcaf4e33bdaa1701bd41fb
net: mscc: ocelot: use pretty names for IPPROTO_UDP and IPPROTO_TCP

Hardcoding these IP protocol numbers in is2_entry_set() obscures the
purpose of the code, so replace the magic numbers with the definitions
from linux/in.h.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_vcap.c