Skip to contentSkip to conversation

igc: Add scatter gather support

PATCH Superseded Sasha Neftin 3 participants 3 messages Oct 30, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Add scatter gather support

Scatter gather is used to do DMA data transfers of data that is written to noncontiguous areas of memory.
This patch enable scatter gather support.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/igc/igc_main.c +1 -0
index 6105c6d1f3c9..c3266645c95e 100644
@@ -4434,6 +4434,7 @@ static int igc_probe(struct pci_dev *pdev,
 		goto err_sw_init;
 
 	/* Add supported features to the features list*/
+	netdev->features |= NETIF_F_SG;
 	netdev->features |= NETIF_F_RXCSUM;
 	netdev->features |= NETIF_F_HW_CSUM;
 	netdev->features |= NETIF_F_SCTP_CRC;
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 igc: Add scatter gather support

Dear Sasha,

Quoted 3 lines · Sasha Neftin

Scatter gather is used to do DMA data transfers of data that is written to noncontiguous areas of memory.
This patch enable scatter gather support.

enable*s*

Do you have numbers, if and how this improves performance?

How can this be tested?

[?]

Kind regards,

Paul

#2 lore raw

PATCH 1/1 igc: Add scatter gather support

Quoted 11 lines · Paul Menzel

Dear Sasha,

Quoted 4 lines · Sasha Neftin

Scatter gather is used to do DMA data transfers of data that is written to
noncontiguous areas of memory.
This patch enable scatter gather support.

enable*s*

Thanks Paul - I will fix it and submit v2.

Quoted 2 lines

Do you have numbers, if and how this improves performance?

Yes, I've checked on two machines with i225 HW. For example, I've observed as follow at 2.5Gbps link speed:
sg on off
tcp 2352.93 2342.19 slightly improved
udp 2403.97 2403.49 almost no impact
Generally, I see the TCP stream more affected.
But you could observe different behavior on different machines.

Quoted 3 lines

How can this be tested?

[?]

I used netperf on my machines.

Quoted 5 lines

Kind regards,

Paul