<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 3, 2023 at 1:26 PM Philip Cox <<a href="mailto:philip.cox@canonical.com">philip.cox@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
BugLink: <a href="https://bugs.launchpad.net/bugs/2038349" rel="noreferrer" target="_blank">https://bugs.launchpad.net/bugs/2038349</a><br>
<br>
SRU Justification:<br>
<br>
[Impact]<br>
Unable to enable frame pre-emption on intel i225 NICs.<br>
<br>
ubuntu@adl-s:~$ sudo ethtool-rt.ethtool --set-frame-preemption  enp169s0 fp on ; echo $?<br>
netlink error: frame preemption settings update failed<br>
netlink error: Invalid argument<br>
81<br>
ubuntu@adl-s:~$ <br>
<br>
<br>
[Fix]<br>
The default frag size was not being set for the NIC driver.  The code was returning out of the function early before setting the value. This return has been removed so the value is set.<br>
<br>
[Test Plan]<br>
Intel has provided the fix, and they have tested it.  I have tested it as well.  <br>
<br>
Before the change:<br>
ubuntu@adl-s:~$ sudo ethtool-rt.ethtool --set-frame-preemption  enp169s0 fp on ; echo $?<br>
netlink error: frame preemption settings update failed<br>
netlink error: Invalid argument<br>
81<br>
ubuntu@adl-s:~$ <br>
<br>
After the change:<br>
ubuntu@adl-s:~$ sudo ethtool-rt.ethtool --set-frame-preemption  enp169s0 fp on ; echo $?<br>
0<br>
ubuntu@adl-s:~$ <br>
<br>
<br>
[Where problems could occur]<br>
The should not be any regressions due to how narrow the scope of this change is, and as it is setting a value to what the default value should be, there should not be any regressions.  The scope is fairly limited, and the change is fairly confined.<br>
<br>
---<br>
<br>
Lai Peter Jun Ann (1):<br>
  UBUNTU: SAUCE: (no-up) igc: fix frame preemption not able to set<br>
<br>
 drivers/net/ethernet/intel/igc/igc_tsn.c | 4 ----<br>
 1 file changed, 4 deletions(-)<br>
<br>
-- <br>
2.34.1<br>
<br>
</blockquote></div></div>