lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 27 Mar 2023 10:48:10 +0200
From:   Simon Horman <simon.horman@...igine.com>
To:     Edward Cree <ecree.xilinx@...il.com>
Cc:     edward.cree@....com, linux-net-drivers@....com,
        davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
        edumazet@...gle.com, netdev@...r.kernel.org,
        habetsm.xilinx@...il.com, michal.swiatkowski@...ux.intel.com
Subject: Re: [PATCH net-next v2 4/6] sfc: add functions to insert encap
 matches into the MAE

On Mon, Mar 27, 2023 at 09:28:57AM +0100, Edward Cree wrote:
> On 25/03/2023 12:04, Simon Horman wrote:
> > On Thu, Mar 23, 2023 at 08:45:12PM +0000, edward.cree@....com wrote:
> >> diff --git a/drivers/net/ethernet/sfc/tc.h b/drivers/net/ethernet/sfc/tc.h
> >> index c1485679507c..19782c9a4354 100644
> >> --- a/drivers/net/ethernet/sfc/tc.h
> >> +++ b/drivers/net/ethernet/sfc/tc.h
> >> @@ -70,6 +70,7 @@ struct efx_tc_encap_match {
> >>  	__be32 src_ip, dst_ip;
> >>  	struct in6_addr src_ip6, dst_ip6;
> >>  	__be16 udp_dport;
> >> +	u16 tun_type; /* enum efx_encap_type */
> > 
> > nit: maybe the type of tyn_type can be enum efx_encap_type.
> 
> Yeah, it probably should.  Looking at my git history I think the
>  initial reason was for struct-packing reasons (enums are int-sized
>  at minimum, which is excessive for a field whose largest value is
>  3), but with the rhash_head that later appears between these two
>  fields, using the narrower type doesn't actually avoid a 16-bit
>  hole like it appears to here.
> Will change in v3.

Thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ