cvs commit: src/sys/dev/em if_em.c

Yar Tikhiy yar at
Wed Jan 26 05:44:48 PST 2005

yar         2005-01-26 13:44:48 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/em           if_em.c 
  Respect the current setting of IFCAP_VLAN_HWTAGGING on
  the interface when going to toggle VLAN support for
  internal reasons.  If the IFCAP_VLAN_HWTAGGING bit is
  cleared, we should rely on the (re)init routine to turn
  VLAN support off and never touch the relevant hardware bits.
  This applies to other capability bits, too.  The user
  obviously has a reason for clearing a capability bit,
  e.g., if his particular NIC is buggy and hangs if a
  certain hardware capability is turned on even for a
  fraction of a second.
  The flag adapter->em_insert_vlan_header still is set or
  reset irrespective of the IFCAP_VLAN_HWTAGGING setting,
  as before, in order to handle the case when a user sets
  promiscuous mode on an interface first and later turns
  This change might look orthogonal to rev#1.85, but in fact
  it is not.  It introduces bugfixes that hopefully will make
  implementing the general scheme mentioned in the commit
  message of rev#1.85 easier.
  Revision  Changes    Path
  1.59      +18 -5     src/sys/dev/em/if_em.c

More information about the cvs-src mailing list