diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 | ||||
-rw-r--r-- | include/linux/skbuff.h | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 80776d0c52dc..fd72ecf0ce9f 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -629,6 +629,7 @@ struct mlx5_cmd_work_ent { | |||
629 | void *uout; | 629 | void *uout; |
630 | int uout_size; | 630 | int uout_size; |
631 | mlx5_cmd_cbk_t callback; | 631 | mlx5_cmd_cbk_t callback; |
632 | struct delayed_work cb_timeout_work; | ||
632 | void *context; | 633 | void *context; |
633 | int idx; | 634 | int idx; |
634 | struct completion done; | 635 | struct completion done; |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index ee38a4127475..f39b37180c41 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1062,6 +1062,7 @@ __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) | |||
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | void __skb_get_hash(struct sk_buff *skb); | 1064 | void __skb_get_hash(struct sk_buff *skb); |
1065 | u32 __skb_get_hash_symmetric(struct sk_buff *skb); | ||
1065 | u32 skb_get_poff(const struct sk_buff *skb); | 1066 | u32 skb_get_poff(const struct sk_buff *skb); |
1066 | u32 __skb_get_poff(const struct sk_buff *skb, void *data, | 1067 | u32 __skb_get_poff(const struct sk_buff *skb, void *data, |
1067 | const struct flow_keys *keys, int hlen); | 1068 | const struct flow_keys *keys, int hlen); |
@@ -2870,6 +2871,25 @@ static inline void skb_postpush_rcsum(struct sk_buff *skb, | |||
2870 | } | 2871 | } |
2871 | 2872 | ||
2872 | /** | 2873 | /** |
2874 | * skb_push_rcsum - push skb and update receive checksum | ||
2875 | * @skb: buffer to update | ||
2876 | * @len: length of data pulled | ||
2877 | * | ||
2878 | * This function performs an skb_push on the packet and updates | ||
2879 | * the CHECKSUM_COMPLETE checksum. It should be used on | ||
2880 | * receive path processing instead of skb_push unless you know | ||
2881 | * that the checksum difference is zero (e.g., a valid IP header) | ||
2882 | * or you are setting ip_summed to CHECKSUM_NONE. | ||
2883 | */ | ||
2884 | static inline unsigned char *skb_push_rcsum(struct sk_buff *skb, | ||
2885 | unsigned int len) | ||
2886 | { | ||
2887 | skb_push(skb, len); | ||
2888 | skb_postpush_rcsum(skb, skb->data, len); | ||
2889 | return skb->data; | ||
2890 | } | ||
2891 | |||
2892 | /** | ||
2873 | * pskb_trim_rcsum - trim received skb and update checksum | 2893 | * pskb_trim_rcsum - trim received skb and update checksum |
2874 | * @skb: buffer to trim | 2894 | * @skb: buffer to trim |
2875 | * @len: new length | 2895 | * @len: new length |