Skip to contentSkip to conversation

Is hard_start_xmit synchronized when using different interfaces?

DISCUSSION Gallus 1 participant 1 message Jun 18, 2009

lore
Share & tools
lore

Gallus

author
#0 lore raw

Hi,
I'm trying to sent packets to different interfaces handled by the same network driver (Intel e1000e). The interfaces are located on the same card as well as on different cards.

Each interface has its own instance of my additional custom driver designed to just send packets. The custom driver just allocs the packets by:
skb = dev_alloc_skb(packet->len);

and then them sends by:
result = dev->hard_start_xmit(skb,dev);

The problem is that I cant obtain full bandwidth offered by the 1GB interfaces.

For one interface I get: 120435948 bytes/sec.
For two interfaces I get: 61080233 bytes/sec and 60515294 bytes/sec. For three interfaces I get: 28564020 bytes/sec, 27111184 bytes/sec, 27118907 bytes/sec.

Is the hard_start_xmit function synchronized even if interfaces are distinct?

Please CC me.

Signature · 2 lines
Regards,
Adam