tap: remove unused KERNEL_VERSION definitions
PATCH v2 1/1 tap: remove unused KERNEL_VERSION definitions
The TAP device does not use these definitions in current version. And kernel version is not the correct way to detect features.
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/tap/rte_eth_tap.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/tap/rte_eth_tap.c +0 -4
@@ -60,7 +60,6 @@#include <net/if.h> #include <linux/if_tun.h> #include <linux/if_ether.h> -#include <linux/version.h> #include <fcntl.h> #include <rte_eth_tap.h>
@@ -78,9 +77,6 @@#define ETH_TAP_MAC_ARG "mac"#define ETH_TAP_MAC_FIXED "fixed" -#define FLOWER_KERNEL_VERSION KERNEL_VERSION(4, 2, 0) -#define FLOWER_VLAN_KERNEL_VERSION KERNEL_VERSION(4, 9, 0) -static struct rte_vdev_driver pmd_tap_drv;static const char *valid_arguments[] = {
Signature · 1 line
2.11.0
Quoted 4 lines · Stephen Hemminger
The TAP device does not use these definitions in current version. And kernel version is not the correct way to detect features.
Signed-off-by Stephen Hemminger <[email protected]>
Fixes 7c2d03d65f5e ("net/tap: remove Linux version check")
Reviewed-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedQuoted 10 lines · Ferruh Yigit
Quoted 4 lines · Stephen Hemminger
The TAP device does not use these definitions in current version. And kernel version is not the correct way to detect features.
Signed-off-by Stephen Hemminger <[email protected]>Fixes 7c2d03d65f5e ("net/tap: remove Linux version check")Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/master, thanks.