Hi, I am unable to build i40 driver version for kernel 4.9.337 with CONFIG_I40E_DISABLE_PACKET_SPLIT=1. Since it does not seem to be possible to report a bug in SourceForge project anymore, here is a description of the problem.
Building i40e driver version 2.22.20 for kernel 4.9.337 with
CONFIG_I40E_DISABLE_PACKET_SPLIT=1, build fails - see console output extract
below:
filtering include/net/flow_keys.h out
1 /* Autogenerated for KSRC=my_kernel_directory via kcompat-generator.sh
*/
2 #define HAVE_NDO_FDB_ADD_VID
3 #define HAVE_NDO_UDP_TUNNEL_CALLBACK
4 #define NEED_NETIF_NAPI_ADD_NO_WEIGHT
5 #define NEED_NET_PREFETCH
6 #define NEED_NO_NETDEV_PROG_XDP_WARN_ACTION
7 #define NEED_PCI_AER_CLEAR_NONFATAL_STATUS
8 #define NEED_BITMAP_COPY_CLEAR_TAIL
9 #define NEED_ETH_HW_ADDR_SET
10 #define NEED_MUL_U64_U64_DIV_U64
11 #define NEED_DIFF_BY_SCALED_PPM
12 #define NEED_PTP_SYSTEM_TIMESTAMP
13 #define HAVE_U64_STATS_FETCH_BEGIN_IRQ
14 #define HAVE_U64_STATS_FETCH_RETRY_IRQ
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c: In function
'i40e_process_skb_fields':
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2337:38: error: 'rx_ptype'
undeclared (first use in this function); did you mean '_ctype'?
i40e_rx_hash(rx_ring, rx_desc, skb, rx_ptype);
^~~~~~~~
_ctype
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2337:38: note: each undeclared
identifier is reported only once for each function it appears in
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c: In function
'i40e_clean_rx_irq':
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2948:18: warning: unused
variable 'xdp' [-Wunused-variable]
struct xdp_buff xdp;
^~~
scripts/Makefile.build:307: recipe for target
'my_driver_directory/i40e-2.22.20/src/i40e_txrx.o' failed
Attached patch i40e-build-fix-1.patch fixes this issue.
But there is another build error - see console output extract below:
filtering include/net/flow_keys.h out
1 /* Autogenerated for KSRC=my_kernel_directory via kcompat-generator.sh
*/
2 #define HAVE_NDO_FDB_ADD_VID
3 #define HAVE_NDO_UDP_TUNNEL_CALLBACK
4 #define NEED_NETIF_NAPI_ADD_NO_WEIGHT
5 #define NEED_NET_PREFETCH
6 #define NEED_NO_NETDEV_PROG_XDP_WARN_ACTION
7 #define NEED_PCI_AER_CLEAR_NONFATAL_STATUS
8 #define NEED_BITMAP_COPY_CLEAR_TAIL
9 #define NEED_ETH_HW_ADDR_SET
10 #define NEED_MUL_U64_U64_DIV_U64
11 #define NEED_DIFF_BY_SCALED_PPM
12 #define NEED_PTP_SYSTEM_TIMESTAMP
13 #define HAVE_U64_STATS_FETCH_BEGIN_IRQ
14 #define HAVE_U64_STATS_FETCH_RETRY_IRQ
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c: Infunction
'i40e_process_skb_fields':
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2337:38:error: 'rx_ptype'
undeclared (first use in this function); did you mean '_ctype'?
i40e_rx_hash(rx_ring, rx_desc, skb, rx_ptype);
^~~~~~~~
_ctype
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2337:38: note: each undeclared
identifier is reported only once for each function it appears in
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c: In function
'i40e_clean_rx_irq':
my_driver_directory/i40e-2.22.20/src/i40e_txrx.c:2948:18:warning: unused
variable 'xdp' [-Wunused-variable]
struct xdp_buff xdp;
^~~
scripts/Makefile.build:307: recipe for target
'my_driver_directory/i40e-2.22.20/src/i40e_txrx.o' failed
Attached patch i40e-build-fix-2.patch fixes this issue.
Thanks,
Pierre
i40e-build-fix-1.patch
Description: i40e-build-fix-1.patch
i40e-build-fix-2.patch
Description: i40e-build-fix-2.patch
_______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel Ethernet, visit https://community.intel.com/t5/Ethernet-Products/bd-p/ethernet-products
