mbox series

[0/5] fix protocol size calculation

Message ID cover.1605493464.git.jackmin@nvidia.com (mailing list archive)
Headers
Series fix protocol size calculation |

Message

Xiaoyu Min Nov. 16, 2020, 7:55 a.m. UTC
  From: Xiaoyu Min <jackmin@nvidia.com>

The rte_flow_item_eth, rte_flow_item_vlan, and rte_flow_item_ipv6
are refined. The structs do not exactly represent the real protocol
headers any more.

This serial patchs try to fix all related parts due to the changes.

Dekel Peled (1):
  net/softnic: update headers size calculation

Xiaoyu Min (4):
  net/mlx5: fix protocol size for raw encap judgement
  app/flow-perf: fix protocol size for raw encap
  net/bnxt: fix protocol size for VXLAN encap copy
  net/iavf: fix protocol size for virtchnl copy

 app/test-flow-perf/actions_gen.c           | 136 ++++++++++-----------
 drivers/net/bnxt/tf_ulp/ulp_rte_parser.c   |  11 +-
 drivers/net/iavf/iavf_fdir.c               |   2 +-
 drivers/net/mlx5/mlx5_flow.c               |  12 +-
 drivers/net/mlx5/mlx5_flow.h               |   4 +-
 drivers/net/softnic/rte_eth_softnic_flow.c |   8 +-
 6 files changed, 86 insertions(+), 87 deletions(-)
  

Comments

Thomas Monjalon Nov. 22, 2020, 4:11 p.m. UTC | #1
16/11/2020 08:55, Xiaoyu Min:
> From: Xiaoyu Min <jackmin@nvidia.com>
> 
> The rte_flow_item_eth, rte_flow_item_vlan, and rte_flow_item_ipv6
> are refined. The structs do not exactly represent the real protocol
> headers any more.
> 
> This serial patchs try to fix all related parts due to the changes.
> 
> Dekel Peled (1):
>   net/softnic: update headers size calculation
> 
> Xiaoyu Min (4):
>   net/mlx5: fix protocol size for raw encap judgement
>   app/flow-perf: fix protocol size for raw encap
>   net/bnxt: fix protocol size for VXLAN encap copy

Applied except the iavf patch (as discussed in the thread):

>   net/iavf: fix protocol size for virtchnl copy

A follow-up is required for iavf PMD,
and in general to make things clearer.
A proposal is to have rte_net structs as first field of rte_flow items.