]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Move IPv4 CFP processing to specific functions
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 20 Oct 2017 21:39:44 +0000 (14:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 02:06:47 +0000 (03:06 +0100)
commit4feae69f130b834fe785f448d5ff45718e564671
treeb08d41f766b52787317c349275dc838f65465c33
parent8a71b17d534b2cc60778965507d9461f3c46b7a3
net: dsa: bcm_sf2: Move IPv4 CFP processing to specific functions

Move the processing of IPv4 rules into specific functions, allowing us
to clearly identify which parts are generic and which ones are not. Also
create a specific function to insert a rule into the action and policer
RAMs as those tend to be fairly generic.

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