Skip to content

Commit fd0413b

Browse files
SiFiveHollandkuba-moo
authored andcommitted
net: axienet: Fix check for partial TX checksum
Due to a typo, the code checked the RX checksum feature in the TX path. Fixes: 8a3b7a2 ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver") Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://lore.kernel.org/r/20231122004219.3504219-1-samuel.holland@sifive.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f086388 commit fd0413b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
822822
if (lp->features & XAE_FEATURE_FULL_TX_CSUM) {
823823
/* Tx Full Checksum Offload Enabled */
824824
cur_p->app0 |= 2;
825-
} else if (lp->features & XAE_FEATURE_PARTIAL_RX_CSUM) {
825+
} else if (lp->features & XAE_FEATURE_PARTIAL_TX_CSUM) {
826826
csum_start_off = skb_transport_offset(skb);
827827
csum_index_off = csum_start_off + skb->csum_offset;
828828
/* Tx Partial Checksum Offload Enabled */

0 commit comments

Comments
 (0)