Changeset View
Changeset View
Standalone View
Standalone View
if_lagg.c
Context not available. | |||||
static int lagg_snd_tag_alloc(struct ifnet *, | static int lagg_snd_tag_alloc(struct ifnet *, | ||||
union if_snd_tag_alloc_params *, | union if_snd_tag_alloc_params *, | ||||
struct m_snd_tag **); | struct m_snd_tag **); | ||||
static void lagg_snd_tag_free(struct m_snd_tag *); | |||||
#endif | #endif | ||||
static int lagg_setmulti(struct lagg_port *); | static int lagg_setmulti(struct lagg_port *); | ||||
static int lagg_clrmulti(struct lagg_port *); | static int lagg_clrmulti(struct lagg_port *); | ||||
Context not available. | |||||
ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; | ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; | ||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
ifp->if_snd_tag_alloc = lagg_snd_tag_alloc; | 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; | |||||
hselasky: You have an extra chunk here? | |||||
Done Inline ActionsOhh good catch.. must have been a mis-merge. rrs: Ohh good catch.. must have been a mis-merge.
| |||||
Done Inline Actionsok now its Which is what it should be. rrs: ok now its
#ifdef RATELIMIT
<3 lines including set the flags>
#else
<set the flags without… | |||||
Not Done Inline Actionshselasky: See:
https://reviews.freebsd.org/D19040
This chunk is no longer needed.
--HPS | |||||
Done Inline Actionsahh Perfect :) rrs: ahh Perfect :) | |||||
#endif | #endif | ||||
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS; | |||||
/* | /* | ||||
* Attach as an ordinary ethernet device, children will be attached | * Attach as an ordinary ethernet device, children will be attached | ||||
* as special device IFT_IEEE8023ADLAG. | * as special device IFT_IEEE8023ADLAG. | ||||
Context not available. | |||||
/* forward allocation request */ | /* forward allocation request */ | ||||
return (ifp->if_snd_tag_alloc(ifp, params, ppmt)); | 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 | #endif | ||||
static int | static int | ||||
Context not available. |
You have an extra chunk here?