[PATCH 06/17] BUGFIX: agree to max of rte

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



according to draft, both sides should agree on the maximum value of rte.

Signed-off-by: Jens Osterkamp <jens@xxxxxxxxxxxxxxxxxx>
---
 lldp_evb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lldp_evb.c b/lldp_evb.c
index c9a99bc..bce01b6 100644
--- a/lldp_evb.c
+++ b/lldp_evb.c
@@ -281,7 +281,7 @@ int evb_check_and_fill(struct evb_data *ed, struct tlv_info_evb *tie)
 	if ((tie->scap & LLDP_EVB_CAPABILITY_PROTOCOL_RTE) &&
 	    (ed->tie->scap & LLDP_EVB_CAPABILITY_PROTOCOL_RTE) &&
 		(tie->rte > 0))
-		ed->tie->rte = MIN(ed->tie->svsi,tie->rte);
+		ed->tie->rte = MAX(ed->tie->svsi,tie->rte);
 
 	if (set_config_tlvinfo_bin(ed->ifname, TLVID_8021Qbg(LLDP_EVB_SUBTYPE),
 			       (void *)ed->tie, sizeof(struct tlv_info_evb))) {
-- 
1.7.1

_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization


[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux