Date: Wed, 12 Dec 2018 10:10:56 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r341851 - stable/12/sys/compat/linuxkpi/common/include/linux Message-ID: <201812121010.wBCAAud4003076@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Dec 12 10:10:56 2018 New Revision: 341851 URL: https://svnweb.freebsd.org/changeset/base/341851 Log: MFC r341519: linuxkpi: properly implement netif_carrier_ok(). Submitted by: kib@ Sponsored by: Mellanox Technologies Modified: stable/12/sys/compat/linuxkpi/common/include/linux/netdevice.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/compat/linuxkpi/common/include/linux/netdevice.h ============================================================================== --- stable/12/sys/compat/linuxkpi/common/include/linux/netdevice.h Wed Dec 12 10:09:23 2018 (r341850) +++ stable/12/sys/compat/linuxkpi/common/include/linux/netdevice.h Wed Dec 12 10:10:56 2018 (r341851) @@ -77,7 +77,7 @@ dev_get_by_index(struct vnet *vnet, int if_index) #define netif_running(dev) !!((dev)->if_drv_flags & IFF_DRV_RUNNING) #define netif_oper_up(dev) !!((dev)->if_flags & IFF_UP) -#define netif_carrier_ok(dev) netif_running(dev) +#define netif_carrier_ok(dev) ((dev)->if_link_state == LINK_STATE_UP) static inline void * netdev_priv(const struct net_device *dev)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121010.wBCAAud4003076>