Use if_initbaudrate().

This commit is contained in:
jhb 2012-10-18 15:43:19 +00:00
parent 0979ea8f97
commit 71b8b1e9de

View File

@ -876,7 +876,7 @@ ipoib_intf_alloc(const char *name)
dev->if_output = ipoib_output;
dev->if_input = ipoib_input;
dev->if_resolvemulti = ipoib_resolvemulti;
dev->if_baudrate = IF_Gbps(10UL);
if_initbaudrate(dev, IF_Gbps(10));
dev->if_broadcastaddr = priv->broadcastaddr;
dev->if_snd.ifq_maxlen = ipoib_sendq_size * 2;
sdl = (struct sockaddr_dl *)dev->if_addr->ifa_addr;