Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144629591
D19032.id53420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
996 B
Referenced Files
None
Subscribers
None
D19032.id53420.diff
View Options
Index: sys/net/if_lagg.c
===================================================================
--- sys/net/if_lagg.c
+++ sys/net/if_lagg.c
@@ -133,6 +133,7 @@
static int lagg_snd_tag_alloc(struct ifnet *,
union if_snd_tag_alloc_params *,
struct m_snd_tag **);
+static void lagg_snd_tag_free(struct m_snd_tag *);
#endif
static int lagg_setmulti(struct lagg_port *);
static int lagg_clrmulti(struct lagg_port *);
@@ -514,6 +515,7 @@
ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
#ifdef RATELIMIT
ifp->if_snd_tag_alloc = lagg_snd_tag_alloc;
+ ifp->if_snd_tag_free = lagg_snd_tag_free;
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS | IFCAP_TXRTLMT;
#else
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS;
@@ -1570,6 +1572,13 @@
/* forward allocation request */
return (ifp->if_snd_tag_alloc(ifp, params, ppmt));
}
+
+static void
+lagg_snd_tag_free(struct m_snd_tag *tag)
+{
+ tag->ifp->if_snd_tag_free(tag);
+}
+
#endif
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 11, 10:43 AM (1 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28647218
Default Alt Text
D19032.id53420.diff (996 B)
Attached To
Mode
D19032: Balance the if_snd_tag_alloc with an appropriate if_snd_tag_free
Attached
Detach File
Event Timeline
Log In to Comment