]> 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)
commitd45bbb01cbbd2b6b0b60f7b9ef1808cbb5616599
treeb08d41f766b52787317c349275dc838f65465c33
parentce64870086abba0d40bcbee1593fe8c2de27e001
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