Skip to content

Commit

Permalink
kni: fix build
Browse files Browse the repository at this point in the history
[ upstream commit 327ef5065996356e1a4b77fb93c85737c99bb8fe ]

A previous fix had #else instead of #endif.
The error message is:
	kernel/linux/kni/kni_net.c: In function ‘kni_net_rx_normal’:
	kernel/linux/kni/kni_net.c:448:2: error: #else after #else

Bugzilla ID: 1025
Fixes: c98600d4bed6 ("kni: fix build with Linux 5.18")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
  • Loading branch information
tmonjalo authored and cpaelzer committed Jul 7, 2022
1 parent 3d3bcdc commit 47978fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/linux/kni/kni_net.c
Expand Up @@ -415,7 +415,7 @@ kni_net_rx_normal(struct kni_dev *kni)
netif_rx_ni(skb);
#else
netif_rx(skb);
#else
#endif

/* Update statistics */
dev->stats.rx_bytes += len;
Expand Down

0 comments on commit 47978fa

Please sign in to comment.