BUG - KNI broken in 4.2 kernel
The network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code. There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driver
No wonder they can't stay in sync.
2015-08-26 17:15, Stephen Hemminger:
Quoted 8 lines
The network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code. There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driver
You forgot the BSD drivers and probably others.
Quoted 1 line
No wonder they can't stay in sync.
A patch to remove igb/ixgbe drivers from KNI would be welcome.
Hi Thomas, Stephen
Quoted 17 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Thursday, August 27, 2015 9:42 AM
To: Stephen Hemminger
Cc: [email protected]
Subject: Re: [dpdk-dev] BUG - KNI broken in 4.2 kernel2015-08-26 17:15, Stephen Hemminger:
Quoted 8 lines
The network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code. There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driver
Quoted 5 lines
You forgot the BSD drivers and probably others.
Quoted 1 line
No wonder they can't stay in sync.
A patch to remove igb/ixgbe drivers from KNI would be welcome.
I have a patch ready to submit, I was just waiting for the kernel 4.2 to be released. I will send the patch anyway, as the kernel is almost stable now (RC8), so DPDK will not be broken when kernel is released.
Pablo
Quoted 11 lines
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Wednesday, August 26, 2015 5:15 PM
To: [email protected]; Zhang, Helin
Subject: BUG - KNI broken in 4.2 kernelThe network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code.
Yes, it is a bit ugly. But there is no better way till now, as some of users want to have the functionality of KNI ethtool though limited now. I have an idea that is to disable KNI ethtool support by default, as most of users may not care about it. Then these users will not be bothered by these type of issues. For those users who are using KNI ethtool support, they need to fix the issues on any new versions of kernel or similar.
Any good ideas or comments?
Helin
Quoted 7 lines
There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driverNo wonder they can't stay in sync.
Quoted 8 lines · Helin
Quoted 8 lines
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Wednesday, August 26, 2015 5:15 PM
To: [email protected]; Zhang, Helin
Subject: BUG - KNI broken in 4.2 kernel
Quoted 9 lines
Quoted 3 lines
The network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code.
Yes, it is a bit ugly. But there is no better way till now, as some of users want to have the functionality of KNI ethtool though limited now. I have an idea that is to disable KNI ethtool support by default, as most of users may not care about it. Then these users will not be bothered by these type of issues.
Do you know of anyone that uses KNI that doesn't care about it? Since KNI presents as a normal network interface, it really needs to support the normal Linux commands (ifconfig, ethtool, ...)
Jay
Quoted 14 lines
For those users who are using KNI ethtool support, they need to fix the issues on any new versions of kernel or similar.
Any good ideas or comments?Helin
Quoted 7 lines
There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driverNo wonder they can't stay in sync.
From: Jay Rolette [mailto:[email protected]]
Sent: Thursday, August 27, 2015 8:49 AM
To: Zhang, Helin
Cc: Stephen Hemminger; [email protected]
Subject: Re: [dpdk-dev] BUG - KNI broken in 4.2 kernel
Quoted 9 lines · On Thu, Aug 27, 2015 at 10:23 AM, Zhang, Helin…
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, August 26, 2015 5:15 PM
To: [email protected]<mailto:[email protected]>; Zhang, Helin
Subject: BUG - KNI broken in 4.2 kernelThe network device ops handles changed again.
Does KNI really need to keep yet another copy of the Intel driver code.
Yes, it is a bit ugly. But there is no better way till now, as some of users want to have the functionality of KNI ethtool though limited now. I have an idea that is to disable KNI ethtool support by default, as most of users may not care about it. Then these users will not be bothered by these type of issues.
Do you know of anyone that uses KNI that doesn't care about it? Since KNI presents as a normal network interface, it really needs to support the normal Linux commands (ifconfig, ethtool, ...)
Based on my experience, only one or two users asked for ethtool support, then we have it. Before that time, we don’t have KNI ethtool support.
I did not mean who uses KNI does not care about it, I mean for those users who don’t use KNI, they shouldn’t be bothered by the KNI compilation issues. That’s why I was thinking if we can disable it by default, but not remove it.
Regards,
Helin
Jay
For those users who are using KNI ethtool support, they need to fix the issues on any new versions of kernel or similar. Any good ideas or comments?
Helin
Quoted 7 lines
There already are 4 versions:
1. Out-of tree base driver
2. In-kernel mainline Linux driver
3. DPDK driver
4. KNI DPDK driverNo wonder they can't stay in sync.
Quoted 5 lines · Helin
Based on my experience, only one or two users asked for ethtool support, then we have it. Before that time, we don’t have KNI ethtool support.
I did not mean who uses KNI does not care about it, I mean for those users who don’t use KNI, they shouldn’t be bothered by the KNI compilation issues. That’s why I was thinking if we can disable it by default, but not remove it.
Regards,
Helin
Can KNI instead use DPDK hooks to provide generic ethtool semantics. That way it would work with all hardware.
Quoted 15 lines
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Thursday, August 27, 2015 10:46 AM
To: Zhang, Helin
Cc: Jay Rolette; [email protected]
Subject: Re: [dpdk-dev] BUG - KNI broken in 4.2 kernelQuoted 1 line · Helin
Based on my experience, only one or two users asked for ethtool support, then
we have it. Before that time, we don’t have KNI ethtool support.
Quoted 1 line
I did not mean who uses KNI does not care about it, I mean for those users who
Quoted 8 lines
don’t use KNI, they shouldn’t be bothered by the KNI compilation issues. That’s why I was thinking if we can disable it by default, but not remove it.
Quoted 3 lines
Regards,
HelinCan KNI instead use DPDK hooks to provide generic ethtool semantics. That way it would work with all hardware.
I am not sure if I understood your idea correctly.
My personal point is that the best KNI ethtool support should be processed in user space application.
Sure if we want to support standard Linux ethtool commands, the KNI kernel driver should have a mechanism to work together with user space application. Is that what you said of hooks? But this may need huge efforts on it.
Sure ideas on ethtool support improvements are always welcome!
Regards,
Helin
Quoted 11 lines · Stephen Hemminger
Quoted 5 lines · Helin
Based on my experience, only one or two users asked for ethtool support, then we have it. Before that time, we don’t have KNI ethtool support.
I did not mean who uses KNI does not care about it, I mean for those users who don’t use KNI, they shouldn’t be bothered by the KNI compilation issues. That’s why I was thinking if we can disable it by default, but not remove it.
Regards,
HelinCan KNI instead use DPDK hooks to provide generic ethtool semantics. That way it would work with all hardware.
Hi Stephen,
by this you mean that it's a generic library/kernel driver that acts as a proxy to make calls into the ethdev library, rather than driver-specific calls? If so, that's an idea that should be well worth pursuing. If it's something else you have in mind, please clarify.
Thanks,
/Bruce
Quoted 15 lines · On Fri, 28 Aug 2015 13:44:28 +0100 Bruce Richardson…
Quoted 11 lines · Stephen Hemminger
Quoted 5 lines · Helin
Based on my experience, only one or two users asked for ethtool support, then we have it. Before that time, we don’t have KNI ethtool support.
I did not mean who uses KNI does not care about it, I mean for those users who don’t use KNI, they shouldn’t be bothered by the KNI compilation issues. That’s why I was thinking if we can disable it by default, but not remove it.
Regards,
HelinCan KNI instead use DPDK hooks to provide generic ethtool semantics. That way it would work with all hardware.
Hi Stephen,
Quoted 8 lines
by this you mean that it's a generic library/kernel driver that acts as a proxy to make calls into the ethdev library, rather than driver-specific calls? If so, that's an idea that should be well worth pursuing. If it's something else you have in mind, please clarify.
Thanks,
/Bruce
Yes, not sure exactly how but the other changes to support ethtool like semantics in DPDK seem to overlap here.