if_lagg.h (292402) | if_lagg.h (294615) |
---|---|
1/* $OpenBSD: if_trunk.h,v 1.11 2007/01/31 06:20:19 reyk Exp $ */ 2 3/* 4 * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * | 1/* $OpenBSD: if_trunk.h,v 1.11 2007/01/31 06:20:19 reyk Exp $ */ 2 3/* 4 * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * |
18 * $FreeBSD: head/sys/net/if_lagg.h 292402 2015-12-17 14:41:30Z smh $ | 18 * $FreeBSD: head/sys/net/if_lagg.h 294615 2016-01-23 04:18:44Z araujo $ |
19 */ 20 21#ifndef _NET_LAGG_H 22#define _NET_LAGG_H 23 24/* 25 * Global definitions 26 */ --- 121 unchanged lines hidden (view full) --- 148#define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */ 149#define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */ 150#define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */ 151#define LAGG_OPT_LACP_TIMEOUT 0x80 /* LACP timeout */ 152 u_int ro_count; /* number of ports */ 153 u_int ro_active; /* active port count */ 154 u_int ro_flapping; /* number of flapping */ 155 int ro_flowid_shift; /* shift the flowid */ | 19 */ 20 21#ifndef _NET_LAGG_H 22#define _NET_LAGG_H 23 24/* 25 * Global definitions 26 */ --- 121 unchanged lines hidden (view full) --- 148#define LAGG_OPT_LACP_STRICT 0x10 /* LACP strict mode */ 149#define LAGG_OPT_LACP_TXTEST 0x20 /* LACP debug: txtest */ 150#define LAGG_OPT_LACP_RXTEST 0x40 /* LACP debug: rxtest */ 151#define LAGG_OPT_LACP_TIMEOUT 0x80 /* LACP timeout */ 152 u_int ro_count; /* number of ports */ 153 u_int ro_active; /* active port count */ 154 u_int ro_flapping; /* number of flapping */ 155 int ro_flowid_shift; /* shift the flowid */ |
156 uint32_t ro_bkt; /* packet bucket for roundrobin */ |
|
156}; 157 158#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) 159#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) 160 161#define LAGG_OPT_BITS "\020\001USE_FLOWID\005LACP_STRICT" \ 162 "\006LACP_TXTEST\007LACP_RXTEST" 163 --- 74 unchanged lines hidden (view full) --- 238 struct task sc_lladdr_task; 239 SLIST_HEAD(__llqhd, lagg_llq) sc_llq_head; /* interfaces to program 240 the lladdr on */ 241 eventhandler_tag vlan_attach; 242 eventhandler_tag vlan_detach; 243 struct callout sc_callout; 244 u_int sc_opts; 245 int flowid_shift; /* shift the flowid */ | 157}; 158 159#define SIOCGLAGGOPTS _IOWR('i', 152, struct lagg_reqopts) 160#define SIOCSLAGGOPTS _IOW('i', 153, struct lagg_reqopts) 161 162#define LAGG_OPT_BITS "\020\001USE_FLOWID\005LACP_STRICT" \ 163 "\006LACP_TXTEST\007LACP_RXTEST" 164 --- 74 unchanged lines hidden (view full) --- 239 struct task sc_lladdr_task; 240 SLIST_HEAD(__llqhd, lagg_llq) sc_llq_head; /* interfaces to program 241 the lladdr on */ 242 eventhandler_tag vlan_attach; 243 eventhandler_tag vlan_detach; 244 struct callout sc_callout; 245 u_int sc_opts; 246 int flowid_shift; /* shift the flowid */ |
247 uint32_t sc_bkt; /* packates bucket for roundrobin */ 248 uint32_t sc_bkt_count; /* packates bucket count for roundrobin */ |
|
246 struct lagg_counters detached_counters; /* detached ports sum */ 247}; 248 249struct lagg_port { 250 struct ifnet *lp_ifp; /* physical interface */ 251 struct lagg_softc *lp_softc; /* parent lagg */ 252 uint8_t lp_lladdr[ETHER_ADDR_LEN]; 253 --- 39 unchanged lines hidden --- | 249 struct lagg_counters detached_counters; /* detached ports sum */ 250}; 251 252struct lagg_port { 253 struct ifnet *lp_ifp; /* physical interface */ 254 struct lagg_softc *lp_softc; /* parent lagg */ 255 uint8_t lp_lladdr[ETHER_ADDR_LEN]; 256 --- 39 unchanged lines hidden --- |