aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2013-04-21 22:20:41 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-22 15:37:01 -0400
commit9ecd1a75d977e2e8c48139c7d3efed183f898d94 (patch)
treedaba39f085896184b65d1724e5441cda6ee213a5 /include
parent697089dc13c52d668322ac6cb8548520de27ed0e (diff)
xen-netfront: reduce gso_max_size to account for max TCP header
The maximum packet including header that can be handled by netfront / netback wire format is 65535. Reduce gso_max_size accordingly. Drop skb and print warning when skb->len > 65535. This can 1) save the effort to send malformed packet to netback, 2) help spotting misconfiguration of netfront in the future. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/xen/interface/io/netif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xen/interface/io/netif.h b/include/xen/interface/io/netif.h
index 9dfc12000980..58fadcac33a1 100644
--- a/include/xen/interface/io/netif.h
+++ b/include/xen/interface/io/netif.h
@@ -47,6 +47,7 @@
47#define _XEN_NETTXF_extra_info (3) 47#define _XEN_NETTXF_extra_info (3)
48#define XEN_NETTXF_extra_info (1U<<_XEN_NETTXF_extra_info) 48#define XEN_NETTXF_extra_info (1U<<_XEN_NETTXF_extra_info)
49 49
50#define XEN_NETIF_MAX_TX_SIZE 0xFFFF
50struct xen_netif_tx_request { 51struct xen_netif_tx_request {
51 grant_ref_t gref; /* Reference to buffer page */ 52 grant_ref_t gref; /* Reference to buffer page */
52 uint16_t offset; /* Offset within buffer page */ 53 uint16_t offset; /* Offset within buffer page */