mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
fix an obvious mistake in a test of IFM_ETHER
fix a bug in FreeBSD code. the fix is suggested by Ed Maste. Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
eeecce05e1
commit
bf1aa7a053
@@ -1037,7 +1037,7 @@ netdev_bsd_get_features(const struct netdev *netdev,
|
||||
media_list = xcalloc(ifmr.ifm_count, sizeof(int));
|
||||
ifmr.ifm_ulist = media_list;
|
||||
|
||||
if (!IFM_TYPE(ifmr.ifm_current) & IFM_ETHER) {
|
||||
if (IFM_TYPE(ifmr.ifm_current) != IFM_ETHER) {
|
||||
VLOG_DBG_RL(&rl, "%s: doesn't appear to be ethernet",
|
||||
netdev_get_name(netdev));
|
||||
error = EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user