DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] 答复: How to send packet with line rate on I350-DA2, but not care rx speed
@ 2019-03-15  1:40 hfli
  0 siblings, 0 replies; 2+ messages in thread
From: hfli @ 2019-03-15  1:40 UTC (permalink / raw)
  To: wenzhuo.lu; +Cc: dev, users

Hi Wenzhuo,

 

I found the reason, it due to “Flow Control” features of network adapter,
https://www.intel.com/content/www/us/en/support/articles/000005593/network-a
nd-i-o/ethernet-products.html, it will be send packet with line rate however
after call below function.

 

static void nova_disable_flow_control(int portid)

{

    struct rte_eth_fc_conf fc_conf;

    memset(&fc_conf, 0, sizeof(struct rte_eth_fc_conf));

 

    if (rte_eth_dev_flow_ctrl_get(portid, &fc_conf) != 0) {

        printf("Can't get flow ctrl config from port %d\n", portid);

        return;

    }

 

    if (fc_conf.mode != RTE_FC_NONE) {

        fc_conf.mode = RTE_FC_NONE;

        if (rte_eth_dev_flow_ctrl_set(portid, &fc_conf) != 0) {

           printf("Can't set flow ctrl config from port %d\n", portid);

        }

    }

 

    printf("Disable flow control on port %d ... Done\n", portid);

}

 

 

Thanks and Regards,

Haifeng

 

发件人: hfli@netitest.com <hfli@netitest.com> 
发送时间: 2019年3月8日 18:42
收件人: 'wenzhuo.lu@intel.com' <wenzhuo.lu@intel.com>
抄送: 'dev@dpdk.org' <dev@dpdk.org>; 'users@dpdk.org' <users@dpdk.org>
主题: How to send packet with line rate on I350-DA2, but not care rx speed

 

Wenzhuo,

 

From “MAINTAINERS” file in package of dpdk source code, I know that you
maintain e1000e driver now, could you help me for an question?

 

I use DPDK-pktgen based on Intel I350-DA2 network adapters, when I loopback
two ports on one NIC(I350_eth1 <-> I350_eth2), I got 1Gbps line rate TX
throughput.

 

But when I link a Firewall between two ports, just like I350_eth1 ->
Firewall_port1 -> Firewall_port2 -> I350_eth2, even I try to burst tx
throughput as line rate by power CPU cores, it only get 600Mbps tx
throughput which is firewall’s rx speed, seem the tx speed from I350 just
depend on peer firewall rx capability.

 

I try this on others network adapters like X520-DA2 and X710DA2, both of
them got different results, tx speed only depend on CPU power, but no
related with rx capability of network devices.

 

Could you know why of this? Is there any configuration/interface/register
update this feature? Let us send packet with line rate, but not care rx
speed.   

 

/ # lspci | grep I350

0e:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)

0e:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)

/ #

 

Thanks and Regards,

Haifeng


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-users] How to send packet with line rate on I350-DA2, but not care rx speed
@ 2019-03-08 10:42 hfli
  0 siblings, 0 replies; 2+ messages in thread
From: hfli @ 2019-03-08 10:42 UTC (permalink / raw)
  To: wenzhuo.lu; +Cc: dev, users

Wenzhuo,

 

From "MAINTAINERS" file in package of dpdk source code, I know that you
maintain e1000e driver now, could you help me for an question?

 

I use DPDK-pktgen based on Intel I350-DA2 network adapters, when I loopback
two ports on one NIC(I350_eth1 <-> I350_eth2), I got 1Gbps line rate TX
throughput.

 

But when I link a Firewall between two ports, just like I350_eth1 ->
Firewall_port1 -> Firewall_port2 -> I350_eth2, even I try to burst tx
throughput as line rate by power CPU cores, it only get 600Mbps tx
throughput which is firewall's rx speed, seem the tx speed from I350 just
depend on peer firewall rx capability.

 

I try this on others network adapters like X520-DA2 and X710DA2, both of
them got different results, tx speed only depend on CPU power, but no
related with rx capability of network devices.

 

Could you know why of this? Is there any configuration/interface/register
update this feature? Let us send packet with line rate, but not care rx
speed.   

 

/ # lspci | grep I350

0e:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)

0e:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network
Connection (rev 01)

/ #

 

Thanks and Regards,

Haifeng


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-18 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15  1:40 [dpdk-users] 答复: How to send packet with line rate on I350-DA2, but not care rx speed hfli
  -- strict thread matches above, loose matches on Subject: below --
2019-03-08 10:42 [dpdk-users] " hfli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).