lacpdu 105 drivers/net/bonding/bond_3ad.c static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); lacpdu 449 drivers/net/bonding/bond_3ad.c static void __choose_matched(struct lacpdu *lacpdu, struct port *port) lacpdu 455 drivers/net/bonding/bond_3ad.c if (((ntohs(lacpdu->partner_port) == port->actor_port_number) && lacpdu 456 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_port_priority) == port->actor_port_priority) && lacpdu 457 drivers/net/bonding/bond_3ad.c MAC_ADDRESS_EQUAL(&(lacpdu->partner_system), &(port->actor_system)) && lacpdu 458 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_system_priority) == port->actor_system_priority) && lacpdu 459 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_key) == port->actor_oper_port_key) && lacpdu 460 drivers/net/bonding/bond_3ad.c ((lacpdu->partner_state & AD_STATE_AGGREGATION) == (port->actor_oper_port_state & AD_STATE_AGGREGATION))) || lacpdu 461 drivers/net/bonding/bond_3ad.c ((lacpdu->actor_state & AD_STATE_AGGREGATION) == 0) lacpdu 478 drivers/net/bonding/bond_3ad.c static void __record_pdu(struct lacpdu *lacpdu, struct port *port) lacpdu 480 drivers/net/bonding/bond_3ad.c if (lacpdu && port) { lacpdu 483 drivers/net/bonding/bond_3ad.c __choose_matched(lacpdu, port); lacpdu 487 drivers/net/bonding/bond_3ad.c partner->port_number = ntohs(lacpdu->actor_port); lacpdu 488 drivers/net/bonding/bond_3ad.c partner->port_priority = ntohs(lacpdu->actor_port_priority); lacpdu 489 drivers/net/bonding/bond_3ad.c partner->system = lacpdu->actor_system; lacpdu 490 drivers/net/bonding/bond_3ad.c partner->system_priority = ntohs(lacpdu->actor_system_priority); lacpdu 491 drivers/net/bonding/bond_3ad.c partner->key = ntohs(lacpdu->actor_key); lacpdu 492 drivers/net/bonding/bond_3ad.c partner->port_state = lacpdu->actor_state; lacpdu 501 drivers/net/bonding/bond_3ad.c (lacpdu->actor_state & AD_STATE_SYNCHRONIZATION)) { lacpdu 546 drivers/net/bonding/bond_3ad.c static void __update_selected(struct lacpdu *lacpdu, struct port *port) lacpdu 548 drivers/net/bonding/bond_3ad.c if (lacpdu && port) { lacpdu 554 drivers/net/bonding/bond_3ad.c if (ntohs(lacpdu->actor_port) != partner->port_number || lacpdu 555 drivers/net/bonding/bond_3ad.c ntohs(lacpdu->actor_port_priority) != partner->port_priority || lacpdu 556 drivers/net/bonding/bond_3ad.c !MAC_ADDRESS_EQUAL(&lacpdu->actor_system, &partner->system) || lacpdu 557 drivers/net/bonding/bond_3ad.c ntohs(lacpdu->actor_system_priority) != partner->system_priority || lacpdu 558 drivers/net/bonding/bond_3ad.c ntohs(lacpdu->actor_key) != partner->key || lacpdu 559 drivers/net/bonding/bond_3ad.c (lacpdu->actor_state & AD_STATE_AGGREGATION) != (partner->port_state & AD_STATE_AGGREGATION)) { lacpdu 610 drivers/net/bonding/bond_3ad.c static void __update_ntt(struct lacpdu *lacpdu, struct port *port) lacpdu 613 drivers/net/bonding/bond_3ad.c if (lacpdu && port) { lacpdu 617 drivers/net/bonding/bond_3ad.c if ((ntohs(lacpdu->partner_port) != port->actor_port_number) || lacpdu 618 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_port_priority) != port->actor_port_priority) || lacpdu 619 drivers/net/bonding/bond_3ad.c !MAC_ADDRESS_EQUAL(&(lacpdu->partner_system), &(port->actor_system)) || lacpdu 620 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_system_priority) != port->actor_system_priority) || lacpdu 621 drivers/net/bonding/bond_3ad.c (ntohs(lacpdu->partner_key) != port->actor_oper_port_key) || lacpdu 622 drivers/net/bonding/bond_3ad.c ((lacpdu->partner_state & AD_STATE_LACP_ACTIVITY) != (port->actor_oper_port_state & AD_STATE_LACP_ACTIVITY)) || lacpdu 623 drivers/net/bonding/bond_3ad.c ((lacpdu->partner_state & AD_STATE_LACP_TIMEOUT) != (port->actor_oper_port_state & AD_STATE_LACP_TIMEOUT)) || lacpdu 624 drivers/net/bonding/bond_3ad.c ((lacpdu->partner_state & AD_STATE_SYNCHRONIZATION) != (port->actor_oper_port_state & AD_STATE_SYNCHRONIZATION)) || lacpdu 625 drivers/net/bonding/bond_3ad.c ((lacpdu->partner_state & AD_STATE_AGGREGATION) != (port->actor_oper_port_state & AD_STATE_AGGREGATION)) lacpdu 778 drivers/net/bonding/bond_3ad.c struct lacpdu *lacpdu = &port->lacpdu; lacpdu 788 drivers/net/bonding/bond_3ad.c lacpdu->actor_system_priority = htons(port->actor_system_priority); lacpdu 789 drivers/net/bonding/bond_3ad.c lacpdu->actor_system = port->actor_system; lacpdu 790 drivers/net/bonding/bond_3ad.c lacpdu->actor_key = htons(port->actor_oper_port_key); lacpdu 791 drivers/net/bonding/bond_3ad.c lacpdu->actor_port_priority = htons(port->actor_port_priority); lacpdu 792 drivers/net/bonding/bond_3ad.c lacpdu->actor_port = htons(port->actor_port_number); lacpdu 793 drivers/net/bonding/bond_3ad.c lacpdu->actor_state = port->actor_oper_port_state; lacpdu 803 drivers/net/bonding/bond_3ad.c lacpdu->partner_system_priority = htons(partner->system_priority); lacpdu 804 drivers/net/bonding/bond_3ad.c lacpdu->partner_system = partner->system; lacpdu 805 drivers/net/bonding/bond_3ad.c lacpdu->partner_key = htons(partner->key); lacpdu 806 drivers/net/bonding/bond_3ad.c lacpdu->partner_port_priority = htons(partner->port_priority); lacpdu 807 drivers/net/bonding/bond_3ad.c lacpdu->partner_port = htons(partner->port_number); lacpdu 808 drivers/net/bonding/bond_3ad.c lacpdu->partner_state = partner->port_state; lacpdu 859 drivers/net/bonding/bond_3ad.c lacpdu_header->lacpdu = port->lacpdu; lacpdu 1081 drivers/net/bonding/bond_3ad.c static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port) lacpdu 1090 drivers/net/bonding/bond_3ad.c if (lacpdu) { lacpdu 1104 drivers/net/bonding/bond_3ad.c else if (lacpdu && ((port->sm_rx_state == AD_RX_EXPIRED) || lacpdu 1145 drivers/net/bonding/bond_3ad.c if ((port->sm_rx_state != last_state) || (lacpdu)) { lacpdu 1196 drivers/net/bonding/bond_3ad.c if (MAC_ADDRESS_EQUAL(&(lacpdu->actor_system), lacpdu 1202 drivers/net/bonding/bond_3ad.c __update_selected(lacpdu, port); lacpdu 1203 drivers/net/bonding/bond_3ad.c __update_ntt(lacpdu, port); lacpdu 1204 drivers/net/bonding/bond_3ad.c __record_pdu(lacpdu, port); lacpdu 1835 drivers/net/bonding/bond_3ad.c static const struct lacpdu lacpdu = { lacpdu 1883 drivers/net/bonding/bond_3ad.c memcpy(&port->lacpdu, &lacpdu, sizeof(lacpdu)); lacpdu 2375 drivers/net/bonding/bond_3ad.c static int bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave) lacpdu 2390 drivers/net/bonding/bond_3ad.c switch (lacpdu->subtype) { lacpdu 2398 drivers/net/bonding/bond_3ad.c ad_rx_machine(lacpdu, port); lacpdu 2406 drivers/net/bonding/bond_3ad.c marker = (struct bond_marker *)lacpdu; lacpdu 2657 drivers/net/bonding/bond_3ad.c struct lacpdu *lacpdu, _lacpdu; lacpdu 2665 drivers/net/bonding/bond_3ad.c lacpdu = skb_header_pointer(skb, 0, sizeof(_lacpdu), &_lacpdu); lacpdu 2666 drivers/net/bonding/bond_3ad.c if (!lacpdu) { lacpdu 2672 drivers/net/bonding/bond_3ad.c return bond_3ad_rx_indication(lacpdu, slave); lacpdu 131 include/net/bond_3ad.h struct lacpdu lacpdu; lacpdu 245 include/net/bond_3ad.h struct lacpdu lacpdu; /* the lacpdu that will be sent for this port */