The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
Signed-off-by: Jochen Henneberg <redacted>
---
V2: Added fixes tags
V3: Fixed fixes tag format
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Simon Horman <hidden> Date: 2023-02-22 09:08:01
On Wed, Feb 22, 2023 at 08:38:28AM +0100, Jochen Henneberg wrote:
The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
This commit was included in v5.13
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
While this one was included in v5.4
It seems to me that each of the above commits correspond to one
of the two hunks below. I don't know if that means this
patch should be split in two to assist backporting.
Signed-off-by: Jochen Henneberg <redacted>
That aside, this looks good to me.
Reviewed-by: Simon Horman <redacted>
On Wed, Feb 22, 2023 at 08:38:28AM +0100, Jochen Henneberg wrote:
quoted
The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
This commit was included in v5.13
quoted
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
While this one was included in v5.4
It seems to me that each of the above commits correspond to one
of the two hunks below. I don't know if that means this
patch should be split in two to assist backporting.
I was thinking about this already but the change was so trivial that I
hesitated to split it into two commits. I wanted I will surely change
this.
quoted
Signed-off-by: Jochen Henneberg <redacted>
That aside, this looks good to me.
Reviewed-by: Simon Horman <redacted>
From: Andrew Lunn <andrew@lunn.ch> Date: 2023-02-22 18:04:31
On Wed, Feb 22, 2023 at 04:49:55PM +0100, Henneberg - Systemdesign wrote:
Simon Horman [off-list ref] writes:
quoted
On Wed, Feb 22, 2023 at 08:38:28AM +0100, Jochen Henneberg wrote:
quoted
The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
This commit was included in v5.13
quoted
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
While this one was included in v5.4
It seems to me that each of the above commits correspond to one
of the two hunks below. I don't know if that means this
patch should be split in two to assist backporting.
I was thinking about this already but the change was so trivial that I
hesitated to split it into two commits. I wanted I will surely change
this.
The advantage of splitting is that it makes back porting easy. Both
parts are needed for 6.1 and 5.15. 5.10 only needs the fix for
ec222003bd94. It if does not easily apply to 5.10 it could get
dropped. By splitting it, the backporting probably happens fully
automated, no human involved.
Andrew
On Wed, Feb 22, 2023 at 04:49:55PM +0100, Henneberg - Systemdesign wrote:
quoted
Simon Horman [off-list ref] writes:
quoted
On Wed, Feb 22, 2023 at 08:38:28AM +0100, Jochen Henneberg wrote:
quoted
The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
This commit was included in v5.13
quoted
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
While this one was included in v5.4
It seems to me that each of the above commits correspond to one
of the two hunks below. I don't know if that means this
patch should be split in two to assist backporting.
I was thinking about this already but the change was so trivial that I
hesitated to split it into two commits. I wanted I will surely change
this.
The advantage of splitting is that it makes back porting easy. Both
parts are needed for 6.1 and 5.15. 5.10 only needs the fix for
ec222003bd94. It if does not easily apply to 5.10 it could get
dropped. By splitting it, the backporting probably happens fully
automated, no human involved.
Understood. Will do the split and send two new patches. I will not
continue with version upcounting and not send a patch series but two
completly independent patches.
Jochen
From: Simon Horman <hidden> Date: 2023-02-23 12:56:03
On Thu, Feb 23, 2023 at 12:34:18PM +0100, Jochen Henneberg wrote:
Andrew Lunn [off-list ref] writes:
quoted
On Wed, Feb 22, 2023 at 04:49:55PM +0100, Henneberg - Systemdesign wrote:
quoted
Simon Horman [off-list ref] writes:
quoted
On Wed, Feb 22, 2023 at 08:38:28AM +0100, Jochen Henneberg wrote:
quoted
The premature loop termination check makes sense only in case of the
jump to read_again where the count may have been updated. But
read_again did not include the check.
Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
This commit was included in v5.13
quoted
Fixes: ec222003bd94 ("net: stmmac: Prepare to add Split Header support")
While this one was included in v5.4
It seems to me that each of the above commits correspond to one
of the two hunks below. I don't know if that means this
patch should be split in two to assist backporting.
I was thinking about this already but the change was so trivial that I
hesitated to split it into two commits. I wanted I will surely change
this.
The advantage of splitting is that it makes back porting easy. Both
parts are needed for 6.1 and 5.15. 5.10 only needs the fix for
ec222003bd94. It if does not easily apply to 5.10 it could get
dropped. By splitting it, the backporting probably happens fully
automated, no human involved.
Understood. Will do the split and send two new patches. I will not
continue with version upcounting and not send a patch series but two
completly independent patches.
There may be fuzz if the patches are not applied in order.
I'd suggest making a series.