Skip to contentSkip to conversation

nfp: flower: fix ABI mismatch between driver and firmware

PATCH In review Simon Horman 3 participants 4 messages Sep 2, 2020 – Sep 3, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfp: flower: fix ABI mismatch between driver and firmware

From: Louis Peens <[email protected]>

Fix an issue where the driver wrongly detected ipv6 neighbour updates from the NFP as corrupt. Add a reserved field on the kernel side so it is similar to the ipv4 version of the struct and has space for the extra bytes from the card.

Fixes 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")
---
 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c +2 -0
index 2df3deedf9fd..7248d248f604 100644
@@ -61,6 +61,7 @@ struct nfp_tun_active_tuns {
  * @flags:		options part of the request
  * @tun_info.ipv6:		dest IPv6 address of active route
  * @tun_info.egress_port:	port the encapsulated packet egressed
+ * @tun_info.extra:		reserved for future use
  * @tun_info:		tunnels that have sent traffic in reported period
  */
 struct nfp_tun_active_tuns_v6 {
@@ -70,6 +71,7 @@ struct nfp_tun_active_tuns_v6 {
 	struct route_ip_info_v6 {
 		struct in6_addr ipv6;
 		__be32 egress_port;
+		__be32 extra[2];
 	} tun_info[];
 };
 
Signature · 1 line
2.20.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Wed, 2 Sep 2020 17:04:58 +0200 Simon Horman wrote:

From: Louis Peens <[email protected]>

Fix an issue where the driver wrongly detected ipv6 neighbour updates from the NFP as corrupt. Add a reserved field on the kernel side so it is similar to the ipv4 version of the struct and has space for the extra bytes from the card.

Fixes 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")

no need for this empty line

Quoted 2 lines
maintainer
#2 lore raw
In reply to Simon Horman

From: Simon Horman <[email protected]>
Date: Wed, 2 Sep 2020 17:04:58 +0200

Quoted 10 lines

From: Louis Peens <[email protected]>

Fix an issue where the driver wrongly detected ipv6 neighbour updates from the NFP as corrupt. Add a reserved field on the kernel side so it is similar to the ipv4 version of the struct and has space for the extra bytes from the card.

Fixes 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")

Applied and queued up for -stable, thanks Simon.

#3 lore raw
Quoted 10 lines · David Miller

From: Simon Horman <[email protected]>
Date: Wed, 2 Sep 2020 17:04:58 +0200

Quoted 7 lines

From: Louis Peens <[email protected]>

Fix an issue where the driver wrongly detected ipv6 neighbour updates from the NFP as corrupt. Add a reserved field on the kernel side so it is similar to the ipv4 version of the struct and has space for the extra bytes from the card.

Quoted 5 lines
Quoted 3 lines
Fixes 9ea9bfa12240 ("nfp: flower: support ipv6 tunnel keep-alive messages from fw")

Applied and queued up for -stable, thanks Simon.

Great, thanks Dave.