Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: drivers/net/ethernet/intel/i40e/i40e_ethtool.c between commit: 39b042e0b347 ("Merge remote-tracking branch 'net-next/master'") (this is really my revert of 8fd75c58a09a ("i40e: move ethtool stats boiler plate code to i40e_ethtool_stats.h") due to a build failure ) and commit: b5061a9e8785 ("i40e: disallow changing the number of descriptors when AF_XDP is on") from the bpf-next tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. -- Cheers, Stephen Rothwell diff --cc drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 235012b3bd42,3cd2c88c72f8..000000000000 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@@ -5,26 -5,9 +5,27 @@@ #include "i40e.h" #include "i40e_diag.h" + #include "i40e_txrx_common.h" -#include "i40e_ethtool_stats.h" +struct i40e_stats { + /* The stat_string is expected to be a format string formatted using + * vsnprintf by i40e_add_stat_strings. Every member of a stats array + * should use the same format specifiers as they will be formatted + * using the same variadic arguments. + */ + char stat_string[ETH_GSTRING_LEN]; + int sizeof_stat; + int stat_offset; +}; + +#define I40E_STAT(_type, _name, _stat) { \ + .stat_string = _name, \ + .sizeof_stat = FIELD_SIZEOF(_type, _stat), \ + .stat_offset = offsetof(_type, _stat) \ +} + +#define I40E_NETDEV_STAT(_net_stat) \ + I40E_STAT(struct rtnl_link_stats64, #_net_stat, _net_stat) #define I40E_PF_STAT(_name, _stat) \ I40E_STAT(struct i40e_pf, _name, _stat) #define I40E_VSI_STAT(_name, _stat) \
Attachment:
pgpUBJrAYASuE.pgp
Description: OpenPGP digital signature