aboutsummaryrefslogtreecommitdiff
path: root/lib/bond.h
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2011-10-22 17:22:11 -0700
committerJesse Gross <jesse@nicira.com>2011-11-02 16:36:49 -0700
commitea131871e4c8793ff90f60cfb5f45947d6a2c10b (patch)
tree67eb333e30de6f6c01004d4bb2d673ec84aff7bf /lib/bond.h
parenta7d7f493ba47b1986857b57103f75dccf65d548a (diff)
ofproto-dpif: Use send_packet() instead of netdev_send().
netdev_send() directly sends a packet using Linux mechanisms, skipping our kernel module. Several upper layer abstractions are built on top of the kernel module, so this means that we loose stats, sFlow, etc. on these packets. This changes bonding, LACP, and STP to use send_packet() as CFM does, which uses the standard kernel mechanisms and provides a single place that needs to be updated.
Diffstat (limited to 'lib/bond.h')
-rw-r--r--lib/bond.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bond.h b/lib/bond.h
index f9554326..19580298 100644
--- a/lib/bond.h
+++ b/lib/bond.h
@@ -75,9 +75,9 @@ void bond_slave_set_may_enable(struct bond *, void *slave_, bool may_enable);
/* Special MAC learning support for SLB bonding. */
bool bond_should_send_learning_packets(struct bond *);
-int bond_send_learning_packet(struct bond *,
- const uint8_t eth_src[ETH_ADDR_LEN],
- uint16_t vlan);
+struct ofpbuf *bond_compose_learning_packet(struct bond *,
+ const uint8_t eth_src[ETH_ADDR_LEN],
+ uint16_t vlan, void **port_aux);
/* Packet processing. */
enum bond_verdict {