On Sat, Feb 11, 2017 at 12:14:24AM +0000, Daniele Di Proietto wrote: > On 02/02/2017 12:48, "Ben Pfaff" <[email protected]> wrote: > >I don't understand why this uses "set" then $1. Are you concerned that > >BOND_DPDK_DEVARGS might have multiple words and you want to get just the > >first one? > > Now for each interface we need to specify two parameters: the name (it is > chosen by the user and it can be arbitrary) and the devargs (most likely the > PCI address). > > With this patch the user enters the names in BOND_IFACES and the devargs in > BOND_DPDK_DEVARGS. > > set -- ${BOND_DPDK_DEVARGS} > for _iface in ${BOND_IFACE}; do > echo $_iface $1 > shift > done > > is a quick and dirty way to iterate through both lists in the same loop.
Oh! I did not notice the new "shift". Acked-by: Ben Pfaff <[email protected]> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
