Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150437558
D8962.id23380.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
D8962.id23380.diff
View Options
Index: sys/dev/hyperv/netvsc/if_hn.c
===================================================================
--- sys/dev/hyperv/netvsc/if_hn.c
+++ sys/dev/hyperv/netvsc/if_hn.c
@@ -2129,15 +2129,7 @@
int size, do_lro = 0, do_csum = 1;
int hash_type;
- if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
- return (0);
-
- /*
- * Bail out if packet contains more data than configured MTU.
- */
- if (dlen > (ifp->if_mtu + ETHER_HDR_LEN)) {
- return (0);
- } else if (dlen <= MHLEN) {
+ if (dlen <= MHLEN) {
m_new = m_gethdr(M_NOWAIT, MT_DATA);
if (m_new == NULL) {
if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 5:32 AM (10 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30707997
Default Alt Text
D8962.id23380.diff (615 B)
Attached To
Mode
D8962: hyperv/hn: remove the MTU and IFF_DRV_RUNNING checking in hn_rxpkt()
Attached
Detach File
Event Timeline
Log In to Comment