]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix harmonize_features() vs NETIF_F_HIGHDMA
authorEric Dumazet <edumazet@google.com>
Wed, 18 Jan 2017 20:12:17 +0000 (12:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 20:24:27 +0000 (15:24 -0500)
commit0c80bc328a53e9ace7ceba1d632c2da20a5424d8
tree43a9e60278228617cef8d236b01a57105ee630a3
parentd0f3346c11de1b262609dcc1e3666868cff9070a
net: fix harmonize_features() vs NETIF_F_HIGHDMA

Ashizuka reported a highmem oddity and sent a patch for freescale
fec driver.

But the problem root cause is that core networking stack
must ensure no skb with highmem fragment is ever sent through
a device that does not assert NETIF_F_HIGHDMA in its features.

We need to call illegal_highdma() from harmonize_features()
regardless of CSUM checks.

Fixes: 0568564d1b16 ("net: Kill link between CSUM and SG features.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Pravin Shelar <pshelar@ovn.org>
Reported-by: "Ashizuka, Yuusuke" <ashiduka@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c