Skip to content

Commit

Permalink
dhcp for dual tor: include all vlan intf into downstream intf (#6990)
Browse files Browse the repository at this point in the history
* include all vlan intf into downstream intf

* add a comment
  • Loading branch information
trzhang-msft authored and lguohan committed Mar 10, 2021
1 parent d9e9175 commit fdbb7fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ index e158efe..055d97f 100644
(flags & INTERFACE_UPSTREAM ? 'Y' : 'N'),
(flags & INTERFACE_DOWNSTREAM ? 'Y' : 'N'));

+ if (flags & INTERFACE_DOWNSTREAM) {
+ if (flags & INTERFACE_DOWNSTREAM || flags & INTERFACE_UPSTREAM) { /* include all vlan intf in downstream_intf_list */
+ ci = ((struct downstream_intf_list *)dmalloc(sizeof *ci, MDL));
+ if (!ci)
+ log_fatal("no memory for downstream interface pointer.\n");
Expand Down

0 comments on commit fdbb7fe

Please sign in to comment.