nfp: add helper to reassign rings to IRQ vectors
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 3 Nov 2016 17:12:02 +0000 (17:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2016 18:56:15 +0000 (14:56 -0400)
commite31230f9260f7bcf069e3962111f7e4656a1bfd4
tree7d8a96f1a1db0b848e89368a608ce606034e0364
parent0668b60ba60228cb0fa21bc69baa6269edf7b6d3
nfp: add helper to reassign rings to IRQ vectors

Instead of fixing ring -> vector relations up in ring swap functions
put the reassignment into a helper function which will reinit all
links.

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