On 11/20/2018 6:51 PM, Pablo Neira Ayuso wrote: > Update this driver to use the flow_rule infrastructure, hence we can use > the same code to populate hardware IR from ethtool_rx_flow and the > cls_flower interfaces. > > Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org> > --- [snip] > @@ -398,9 +411,10 @@ static int bcm_sf2_cfp_ipv4_rule_set(struct bcm_sf2_priv > *priv, int port, > * Reserved [1] > * UDF_Valid[8] [0] > */ > - core_writel(priv, v4_spec->tos << IPTOS_SHIFT | > - ip_proto << IPPROTO_SHIFT | ip_frag << IP_FRAG_SHIFT | > - udf_upper_bits(num_udf), > + core_writel(priv, ip.key->tos << IPTOS_SHIFT | > + basic.key->n_proto << IPPROTO_SHIFT | > + ip_frag << IP_FRAG_SHIFT | > + udf_upper_bits(num_udf), Can you maintain the alignment of the arguments here? Every else looked okay, but I need to check the ipv6 structure to make sure we can access it as 4x32 bits words like we did before. -- Florian
- Re: [PATCH net-next,v3 09/12] flow_dissector:... Florian Fainelli
- Re: [PATCH net-next,v3 09/12] flow_dissec... Jiri Pirko
- Re: [PATCH net-next,v3 09/12] flow_dissector:... Florian Fainelli
- Re: [PATCH net-next,v3 09/12] flow_dissec... Jiri Pirko
- [PATCH net-next,v3 08/12] flow_dissector: add wake... Pablo Neira Ayuso
- [PATCH net-next,v3 04/12] cls_api: add translator ... Pablo Neira Ayuso
- Re: [PATCH net-next,v3 04/12] cls_api: add tr... Marcelo Ricardo Leitner
- Re: [PATCH net-next,v3 04/12] cls_api: ad... Pablo Neira Ayuso
- Re: [PATCH net-next,v3 04/12] cls_api: add tr... Marcelo Ricardo Leitner
- [PATCH net-next,v3 10/12] dsa: bcm_sf2: use flow_r... Pablo Neira Ayuso
- Re: [PATCH net-next,v3 10/12] dsa: bcm_sf2: u... Florian Fainelli
- [PATCH net-next,v3 12/12] qede: use ethtool_rx_flo... Pablo Neira Ayuso
- Re: [PATCH net-next,v3 12/12] qede: use ethto... Marcelo Ricardo Leitner
- [PATCH net-next,v3 05/12] cls_flower: add statisti... Pablo Neira Ayuso
- [PATCH net-next,v3 07/12] cls_flower: don't expose... Pablo Neira Ayuso
- [PATCH net-next,v3 06/12] drivers: net: use flow a... Pablo Neira Ayuso
- [PATCH net-next,v3 11/12] qede: place ethtool_rx_f... Pablo Neira Ayuso
- [PATCH net-next,v3 02/12] net/mlx5e: support for t... Pablo Neira Ayuso
- [PATCH net-next,v3 01/12] flow_dissector: add flow... Pablo Neira Ayuso
- Re: [PATCH net-next,v3 00/12] add flow_rule infras... Marcelo Ricardo Leitner
- Re: [PATCH net-next,v3 00/12] add flow_rule i... Marcelo Ricardo Leitner