Thread (41 messages) 41 messages, 8 authors, 2021-03-29

Re: [dpdk-dev] [PATCH v3 2/2] drivers/net: remove explicit include of legacy filtering

From: Andrew Rybchenko <hidden>
Date: 2021-03-25 05:53:13

On 3/24/21 11:00 PM, Thomas Monjalon wrote:
24/03/2021 19:08, Ferruh Yigit:
quoted
On 3/21/2021 9:00 AM, Thomas Monjalon wrote:
quoted
The header file rte_eth_ctrl.h should not be needed because
this legacy filtering API is completely replaced with the rte_flow API.
However some definitions from this file are still used by some drivers,
but such usage is already covered by an implicit include via rte_ethdev.h.

Signed-off-by: Thomas Monjalon <redacted>
Acked-by: Rosen Xu <redacted>
Acked-by: Hemant Agrawal <redacted>
---
  drivers/net/dpaa2/dpaa2_ptp.c       | 1 -
  drivers/net/iavf/iavf_hash.c        | 1 -
  drivers/net/ice/ice_acl_filter.c    | 1 -
  drivers/net/ice/ice_hash.c          | 1 -
  drivers/net/ice/ice_switch_filter.c | 1 -
  drivers/net/igc/igc_filter.h        | 1 -
  drivers/net/ipn3ke/ipn3ke_flow.c    | 1 -
Although this will work, if the above drives are using the defines from the 
header file, isn't it better to include it explicitly?

What is the benefit of including the header implicitly?
The benefit is to progressively remove rte_eth_ctrl.h.
I want it to disappear.
+1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help