DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK drivers should not use kernel version
@ 2017-06-21 16:28 Stephen Hemminger
  2017-06-23  7:33 ` Hemant Agrawal
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-06-21 16:28 UTC (permalink / raw)
  To: Shahaf Shuler, Pascal Mazon; +Cc: dev

Looking at some other issues, I noticed that both the TAP and MLX5 device
drivers are looking at kernel version through uname.  Although this may
seem like a good way to deal with kernel API changes, it is not reliable.

Enterprise kernel distro vendors never change kernel version but do backport
features from later kernels. Therefore the behavior expected may change
even though kernel version doesn't change. Also kernel version does not
dictate that the expected feature (like flower) is in the kernel configuration.

I recommend this be looked for in all future submissions. Maybe even flagged
as error in DPDK version of checkpatch.

$ git blame drivers/net/mlx5/mlx5_ethdev.c | grep uname
3a49ffe38a950 (Shahaf Shuler                2017-02-09 14:29:54 +0200  895) 	if (uname(&utsname) == -1 ||
$ git blame drivers/net/tap/rte_eth_tap.c | grep uname
de96fe68ae959 (Pascal Mazon     2017-03-23 09:33:57 +0100 1169) 	if (uname(&utsname) == -1 ||

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-25  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21 16:28 [dpdk-dev] DPDK drivers should not use kernel version Stephen Hemminger
2017-06-23  7:33 ` Hemant Agrawal
2017-06-23 17:55   ` Stephen Hemminger
2017-06-25  6:03   ` Shahaf Shuler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).