Skip to contentSkip to conversation

ixgbe: use u32 instead of __u32 in model header

PATCH Applied John Fastabend 3 participants 7 messages Feb 17, 2016 – Feb 18, 2016

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

PATCH 1/2 ixgbe: use u32 instead of __u32 in model header

I incorrectly used __u32 types where we should be using u32 types when I added the ixgbe_model.h file.

Fixes 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe")
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_model.h +9 -9
index 43ebec4..62ea2e7 100644
@@ -35,13 +35,13 @@ struct ixgbe_mat_field {
 	unsigned int mask;
 	int (*val)(struct ixgbe_fdir_filter *input,
 		   union ixgbe_atr_input *mask,
-		   __u32 val, __u32 m);
+		   u32 val, u32 m);
 	unsigned int type;
 };
 
 static inline int ixgbe_mat_prgm_sip(struct ixgbe_fdir_filter *input,
 				     union ixgbe_atr_input *mask,
-				     __u32 val, __u32 m)
+				     u32 val, u32 m)
 {
 	input->filter.formatted.src_ip[0] = val;
 	mask->formatted.src_ip[0] = m;
@@ -50,7 +50,7 @@ static inline int ixgbe_mat_prgm_sip(struct ixgbe_fdir_filter *input,
 
 static inline int ixgbe_mat_prgm_dip(struct ixgbe_fdir_filter *input,
 				     union ixgbe_atr_input *mask,
-				     __u32 val, __u32 m)
+				     u32 val, u32 m)
 {
 	input->filter.formatted.dst_ip[0] = val;
 	mask->formatted.dst_ip[0] = m;
@@ -67,7 +67,7 @@ static struct ixgbe_mat_field ixgbe_ipv4_fields[] = {
 
 static inline int ixgbe_mat_prgm_sport(struct ixgbe_fdir_filter *input,
 				       union ixgbe_atr_input *mask,
-				       __u32 val, __u32 m)
+				       u32 val, u32 m)
 {
 	input->filter.formatted.src_port = val & 0xffff;
 	mask->formatted.src_port = m & 0xffff;
@@ -76,7 +76,7 @@ static inline int ixgbe_mat_prgm_sport(struct ixgbe_fdir_filter *input,
 
 static inline int ixgbe_mat_prgm_dport(struct ixgbe_fdir_filter *input,
 				       union ixgbe_atr_input *mask,
-				       __u32 val, __u32 m)
+				       u32 val, u32 m)
 {
 	input->filter.formatted.dst_port = val & 0xffff;
 	mask->formatted.dst_port = m & 0xffff;
@@ -94,12 +94,12 @@ static struct ixgbe_mat_field ixgbe_tcp_fields[] = {
 struct ixgbe_nexthdr {
 	/* offset, shift, and mask of position to next header */
 	unsigned int o;
-	__u32 s;
-	__u32 m;
+	u32 s;
+	u32 m;
 	/* match criteria to make this jump*/
 	unsigned int off;
-	__u32 val;
-	__u32 mask;
+	u32 val;
+	u32 mask;
 	/* location of jump to make */
 	struct ixgbe_mat_field *jump;
 };
#1 lore raw

PATCH 2/2 ixgbe: fix dates on header of ixgbe_model.h

Fixes 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe")
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_model.h +1 -1
index 62ea2e7..ce48872 100644
@@ -1,7 +1,7 @@
 /*******************************************************************************
  *
  * Intel 10 Gigabit PCI Express Linux drive
- * Copyright(c) 2013 - 2015 Intel Corporation.
+ * Copyright(c) 2016 Intel Corporation.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
Acked-by on v1 1/2
#4 lore raw
In reply to John Fastabend
Quoted 4 lines · John Fastabend

I incorrectly used __u32 types where we should be using u32 types when
I added the ixgbe_model.h file.

Quoted 8 lines
Fixes 9d35cf062e05 ("net: ixgbe: add minimal parser details for

ixgbe")

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |   18 +++++++++-----
----

 1 file changed, 9 insertions(+), 9 deletions(-)

Dave feel free to pull this series in from John to fix the issues with his previous series.

Acked-by on v1 2/2
#2 lore raw

Re: [net-next PATCH 2/2] ixgbe: fix dates on header of ixgbe_model.h

In reply to John Fastabend
Quoted 7 lines · John Fastabend
Fixes 9d35cf062e05 ("net: ixgbe: add minimal parser details for

ixgbe")

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |    2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
maintainer
#5 lore raw
In reply to Jeff Kirsher

From: Jeff Kirsher <[email protected]>
Date: Wed, 17 Feb 2016 14:41:48 -0800

Quoted 14 lines · John Fastabend
Quoted 4 lines

I incorrectly used __u32 types where we should be using u32 types when
I added the ixgbe_model.h file.

Quoted 8 lines
Fixes 9d35cf062e05 ("net: ixgbe: add minimal parser details for

ixgbe")

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |   18 +++++++++-----
----

 1 file changed, 9 insertions(+), 9 deletions(-)
Quoted 4 lines

Dave feel free to pull this series in from John to fix the issues with his previous series.

Will do.