[dpdk-dev] [PATCH] pcap: Remove check for pcap_sendpacket

2014-03-06 Thread liljegren.ma...@gmail.com
From: Mats Liljegren Current test relies on the fact that pcap_sendpacket is a macro. Since it is a function, the test fails, causing loss of sending ability when using pcap. Signed-off-by: Mats Liljegren --- lib/librte_pmd_pcap/rte_eth_pcap.h |4 1 file changed, 4 deletions(-) diff

[dpdk-dev] Pcap question

2014-03-06 Thread liljegren.ma...@gmail.com
> I guess something is still wrong: > testpmd application is reporting "PMD: pcap library cannot send packets, > please rebuild with a more up to date libpcap" message when I try creating > a bridge between two network cards. > I am more than sure that older version of pcap is not installed: > c

[dpdk-dev] [PATCH v4 2/2] pcap: save if_index of the bound device

2014-01-24 Thread liljegren.ma...@gmail.com
From: Mats Liljegren Use command line parameters to get the name of the interface. This name is converted into if_index, which is provided as device info. Signed-off-by: Mats Liljegren --- lib/librte_pmd_pcap/rte_eth_pcap.c | 36 lib/librte_pmd_pcap/rte_e

[dpdk-dev] [PATCH v4 1/2] ethdev: introduce if_index in device info

2014-01-24 Thread liljegren.ma...@gmail.com
From: Mats Liljegren This field is intended for pcap to describe the name of the interface as known to Linux. It is an interface index, but can be translated into an interface name using if_indextoname() function. When using pcap, interrupt affinity becomes important, and this field gives the ap

[dpdk-dev] [PATCH v4 0/2] introduce if_index in device info

2014-01-24 Thread liljegren.ma...@gmail.com
Changes since v1: - Split into two patches: Generic and pcap specific. - Changed interface name to interface index Changes since v2: - Interface index is now unsigned - Value 0 used as error rather than 0 - Added missing include of net/if.h in rte_eth_pcap.c - Declared struct args_dict in rte_eth_

[dpdk-dev] [PATCH v3 2/2] pcap: Fill in if_index field for rte_eth_dev_info_get()

2014-01-09 Thread liljegren.ma...@gmail.com
From: Mats Liljegren Signed-off-by: Mats Liljegren --- lib/librte_pmd_pcap/rte_eth_pcap.c | 36 lib/librte_pmd_pcap/rte_eth_pcap.h |9 +++-- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/lib/librte_pmd_pcap/rte_eth_pcap.c b/lib/

[dpdk-dev] [PATCH v3 1/2] ethdev: Introduce if_index field to struct rte_eth_dev_info

2014-01-09 Thread liljegren.ma...@gmail.com
From: Mats Liljegren This field is intended for pcap to describe the name of the interface as known to Linux. It is an interface index, but can be translated into an interface name using if_indextoname() function. When using pcap, interrupt affinity becomes important, and this field gives the ap

[dpdk-dev] [PATCH v3 0/2] Introduce if_index field to struct rte_eth_dev_info

2014-01-09 Thread liljegren.ma...@gmail.com
Changes since v1: - Split into two patches: Generic and pcap specific. - Changed interface name to interface index Changes since v2: - Interface index is now unsigned - Value 0 used as error rather than 0 - Added missing include of net/if.h in rte_eth_pcap.c - Declared struct args_dict in rte_eth_