Author: jfv
Date: Fri Dec 10 22:59:09 2010
New Revision: 216366
URL: http://svn.freebsd.org/changeset/base/216366

Log:
  Remove bogus logic in the TX path, when using
  VLANs and HW_TAGGING in IPv6 the tag is not yet
  in the frame, and thus an ICMP6 packet fails this
  condition and does not get sent.
  
  Approved by: re

Modified:
  stable/8/sys/dev/ixgbe/ixgbe.c

Modified: stable/8/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- stable/8/sys/dev/ixgbe/ixgbe.c      Fri Dec 10 22:22:01 2010        
(r216365)
+++ stable/8/sys/dev/ixgbe/ixgbe.c      Fri Dec 10 22:59:09 2010        
(r216366)
@@ -46,7 +46,7 @@ int             ixgbe_display_debug_stat
 /*********************************************************************
  *  Driver version
  *********************************************************************/
-char ixgbe_driver_version[] = "2.3.6";
+char ixgbe_driver_version[] = "2.3.7";
 
 /*********************************************************************
  *  PCI Device ID Table
@@ -3023,16 +3023,12 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, 
                case ETHERTYPE_IP:
                        ip = (struct ip *)(mp->m_data + ehdrlen);
                        ip_hlen = ip->ip_hl << 2;
-                       if (mp->m_len < ehdrlen + ip_hlen)
-                               return (FALSE);
                        ipproto = ip->ip_p;
                        type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4;
                        break;
                case ETHERTYPE_IPV6:
                        ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
                        ip_hlen = sizeof(struct ip6_hdr);
-                       if (mp->m_len < ehdrlen + ip_hlen)
-                               return (FALSE);
                        ipproto = ip6->ip6_nxt;
                        type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV6;
                        break;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to