[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/40] igb: Read DCMD.VLE of the first Tx descriptor
From: |
Akihiko Odaki |
Subject: |
[PATCH 19/40] igb: Read DCMD.VLE of the first Tx descriptor |
Date: |
Fri, 14 Apr 2023 20:37:16 +0900 |
Section 7.2.2.3 Advanced Transmit Data Descriptor says:
> For frames that spans multiple descriptors, all fields apart from
> DCMD.EOP, DCMD.RS, DCMD.DEXT, DTALEN, Address and DTYP are valid only
> in the first descriptors and are ignored in the subsequent ones.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
hw/net/igb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c
index cca71611fe..e5a7021c0e 100644
--- a/hw/net/igb_core.c
+++ b/hw/net/igb_core.c
@@ -613,7 +613,7 @@ igb_process_tx_desc(IGBCore *core,
idx = (tx->first_olinfo_status >> 4) & 1;
igb_tx_insert_vlan(core, queue_index, tx,
tx->ctx[idx].vlan_macip_lens >> 16,
- !!(cmd_type_len & E1000_TXD_CMD_VLE));
+ !!(tx->first_cmd_type_len & E1000_TXD_CMD_VLE));
if (igb_tx_pkt_send(core, tx, queue_index)) {
igb_on_tx_done_update_stats(core, tx->tx_pkt, queue_index);
--
2.40.0
- RE: [PATCH 14/40] e1000x: Share more Rx filtering logic, (continued)
- [PATCH 15/40] e1000x: Take CRC into consideration for size check, Akihiko Odaki, 2023/04/14
- [PATCH 16/40] e1000e: Always log status after building rx metadata, Akihiko Odaki, 2023/04/14
- [PATCH 17/40] igb: Always log status after building rx metadata, Akihiko Odaki, 2023/04/14
- [PATCH 18/40] igb: Remove goto, Akihiko Odaki, 2023/04/14
- [PATCH 20/40] e1000e: Reset packet state after emptying Tx queue, Akihiko Odaki, 2023/04/14
- [PATCH 19/40] igb: Read DCMD.VLE of the first Tx descriptor,
Akihiko Odaki <=
- [PATCH 22/40] igb: Add more definitions for Tx descriptor, Akihiko Odaki, 2023/04/14
- [PATCH 23/40] igb: Share common VF constants, Akihiko Odaki, 2023/04/14
- [PATCH 21/40] vmxnet3: Reset packet state after emptying Tx queue, Akihiko Odaki, 2023/04/14
- [PATCH 24/40] igb: Fix igb_mac_reg_init alignment, Akihiko Odaki, 2023/04/14
- [PATCH 25/40] net/eth: Use void pointers, Akihiko Odaki, 2023/04/14