Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150736187
D5693.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
841 B
Referenced Files
None
Subscribers
None
D5693.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -1260,8 +1260,10 @@
return (0);
} else if (packet->tot_data_buf_len <= MHLEN) {
m_new = m_gethdr(M_NOWAIT, MT_DATA);
- if (m_new == NULL)
+ if (m_new == NULL) {
+ if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
return (0);
+ }
memcpy(mtod(m_new, void *), packet->data,
packet->tot_data_buf_len);
m_new->m_pkthdr.len = m_new->m_len = packet->tot_data_buf_len;
@@ -1281,7 +1283,7 @@
m_new = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, size);
if (m_new == NULL) {
- if_printf(ifp, "alloc mbuf failed.\n");
+ if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 5:30 PM (2 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30761466
Default Alt Text
D5693.diff (841 B)
Attached To
Mode
D5693: hyperv/hn: When short of mbufs on the RX path, don't spam the console.
Attached
Detach File
Event Timeline
Log In to Comment