[dpdk-dev] [PATCH] lib/librte_ether: bypass code cleanup

Wu, Jingjing jingjing.wu at intel.com
Mon Jul 11 09:50:45 CEST 2016


Hi, Wenzhuo

I don't think you need to create a new API: rte_eth_dev_bypass_supported.
If bypass in not supported, the Ops for bypass feature will not be implemented
in driver, or driver need to return NOT supported.

So I think what you need do is just remove the NIC specific things from testpmd,
including "bypass_is_supported".

Thanks
Jingjing

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu
> Sent: Monday, July 11, 2016 2:21 PM
> To: dev at dpdk.org
> Cc: thomas.monjalon at 6wind.com; Lu, Wenzhuo
> Subject: [dpdk-dev] [PATCH] lib/librte_ether: bypass code cleanup
> 
> In testpmd code, device id is used directly to check if bypass is supported.
> But APP should not know the details of HW, the NIC specific info should not
> be exposed here.
> This patch adds a new rte API to check if bypass is supported.
> 
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu at intel.com>


More information about the dev mailing list