diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /net/ethernet/eth.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
| download | linux-7731b8bc94e599c9a79e428f3359ff2c34b7576a.tar.xz | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'net/ethernet/eth.c')
| -rw-r--r-- | net/ethernet/eth.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index eaeba9b99a73..ee28440f57c5 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c @@ -128,15 +128,15 @@ u32 eth_get_headlen(void *data, unsigned int len)  {  	const unsigned int flags = FLOW_DISSECTOR_F_PARSE_1ST_FRAG;  	const struct ethhdr *eth = (const struct ethhdr *)data; -	struct flow_keys keys; +	struct flow_keys_basic keys;  	/* this should never happen, but better safe than sorry */  	if (unlikely(len < sizeof(*eth)))  		return len;  	/* parse any remaining L2/L3 headers, check for L4 */ -	if (!skb_flow_dissect_flow_keys_buf(&keys, data, eth->h_proto, -					    sizeof(*eth), len, flags)) +	if (!skb_flow_dissect_flow_keys_basic(NULL, &keys, data, eth->h_proto, +					      sizeof(*eth), len, flags))  		return max_t(u32, keys.control.thoff, sizeof(*eth));  	/* parse for any L4 headers */  | 
