]> git.karo-electronics.de Git - linux-beck.git/commit
nfp: centralize runtime reconfiguration logic
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 3 Nov 2016 17:11:58 +0000 (17:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2016 18:56:14 +0000 (14:56 -0400)
commit68453c7a8973399441080bcb20512d38033e64f7
tree74886da3342e51b0faf199a7c7905763aef381d2
parent81cc2e434a9e8514bfad030683f7464c26306e35
nfp: centralize runtime reconfiguration logic

All functions which need to reallocate ring resources at runtime
look very similar.  Centralize that logic into a separate function.
Encapsulate configuration parameters in a structure.

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.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c