aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorMichal Kubeček <[email protected]>2016-01-11 07:50:30 +0100
committerDavid S. Miller <[email protected]>2016-01-11 17:40:57 -0500
commit40ba330227ad00b8c0cdf2f425736ff9549cc423 (patch)
tree3718c7179545b58a97d956881860846fc85597a1 /drivers/fpga/fpga-mgr.c
parent3de03596dfeee48bc803c1d1a6daf60a459929f3 (diff)
udp: disallow UFO for sockets with SO_NO_CHECK option
Commit acf8dd0a9d0b ("udp: only allow UFO for packets from SOCK_DGRAM sockets") disallows UFO for packets sent from raw sockets. We need to do the same also for SOCK_DGRAM sockets with SO_NO_CHECK options, even if for a bit different reason: while such socket would override the CHECKSUM_PARTIAL set by ip_ufo_append_data(), gso_size is still set and bad offloading flags warning is triggered in __skb_gso_segment(). In the IPv6 case, SO_NO_CHECK option is ignored but we need to disallow UFO for packets sent by sockets with UDP_NO_CHECK6_TX option. Signed-off-by: Michal Kubecek <[email protected]> Tested-by: Shannon Nelson <[email protected]> Acked-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions