[dpdk-dev] net/pcap: set rte_errno on TX error

2016-07-25 Thread Thomas Monjalon
2016-07-25 14:33, Ferruh Yigit: > On 7/25/2016 2:10 PM, Zoltan Kiss wrote: > > This returns the error code provided by pcap_sendpacket() > > Although this is good idea, this adds undocumented side effect to > rte_eth_tx_burst(). > > I am not able to find any information in rte_eth_tx_burst() that

[dpdk-dev] net/pcap: set rte_errno on TX error

2016-07-25 Thread Ferruh Yigit
On 7/25/2016 2:10 PM, Zoltan Kiss wrote: > This returns the error code provided by pcap_sendpacket() Although this is good idea, this adds undocumented side effect to rte_eth_tx_burst(). I am not able to find any information in rte_eth_tx_burst() that it can alter rte_errno. Since rte_errno is s

[dpdk-dev] net/pcap: set rte_errno on TX error

2016-07-25 Thread Zoltan Kiss
This returns the error code provided by pcap_sendpacket() Signed-off-by: Zoltan Kiss diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 7e213eb..0899bac 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -41,6 +41,7 @@ #includ