]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: xdp: move driver XDP setup into a separate function
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 22 Jun 2017 01:25:05 +0000 (18:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 17:42:19 +0000 (13:42 -0400)
commit797c304cebd6f859192f35c4e24651f5de427307
tree6089675fd1da878023dfb5b8ffb7c6392f3879e3
parenteda52c6185b9ed83ee0dad75f71d723896e39519
nfp: xdp: move driver XDP setup into a separate function

In preparation of XDP offload flags move the driver setup into
a function.  Otherwise the number of conditions in one function
would make it slightly hard to follow.  The offload handler may
now be called with NULL prog, even if no offload is currently
active, but that's fine, offload code can handle that.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c