cvs commit: src/sys/net if_bridge.c

Andrew Thompson thompsa at FreeBSD.org
Mon Aug 8 22:21:58 GMT 2005


thompsa     2005-08-08 22:21:55 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_bridge.c 
  Log:
  Use m_copypacket() which is an optimization of the common case
  m_copym(m, 0, M_COPYALL, how).
  
  This is required for strict alignment architectures where we align the IP
  header in the input path but m_copym() will create an unaligned copy in
  bridge_broadcast(). m_copypacket() preserves alignment of the first mbuf.
  
  Noticed by:     Petri Simolin
  Approved by:    mlaier (mentor)
  MFC after:      3 days
  
  Revision  Changes    Path
  1.15      +2 -2      src/sys/net/if_bridge.c


More information about the cvs-src mailing list