From owner-freebsd-net@freebsd.org Sat Sep 5 20:35:04 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1DBA9CBB85 for ; Sat, 5 Sep 2015 20:35:04 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm49-vm9.bullet.mail.ne1.yahoo.com (nm49-vm9.bullet.mail.ne1.yahoo.com [98.138.121.137]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 936ACBD5 for ; Sat, 5 Sep 2015 20:35:04 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1441485298; bh=qKm8pL9FjWhTQh1mVgPdsLT0S7J0DGKKnTBDeRA7k3k=; h=Date:From:Subject:To:From:Subject; b=jrV8uz+xEuX+yR1QTFa01AYpGCmf6y4IQxNd1+XBcNW1Lq+WH8xThCL32H2+ucj1sC52ZeXmmpQm0+GvgZwds1Yb6w4opSvHeaGz6Vl8EuQRRSGk/hdh7q88D0wiigI1GkpJ1tROlb2raX74u16nkHsRi5PJS90lg2vxI0WCpkIkXoWa3Hrx7httnAJMJwTRe+oOZrIEpLMTGs/T5DRazbLCRfDXc6UHd0Vpx5t8z54Og9DsrQDtL9AWAl5qLKR+UKI/Hql6JkSOi+8sC1Tnk4tHJQEkAXIMmWn0OvczlqivxeUUl0df7hAC5yQpAutLnsn1ljBzCzpwk++f7use3A== Received: from [127.0.0.1] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 05 Sep 2015 20:34:58 -0000 Received: from [98.138.100.102] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 05 Sep 2015 20:32:12 -0000 Received: from [66.196.81.172] by tm101.bullet.mail.ne1.yahoo.com with NNFMP; 05 Sep 2015 20:32:12 -0000 Received: from [98.139.212.210] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 05 Sep 2015 20:32:12 -0000 Received: from [127.0.0.1] by omp1019.mail.bf1.yahoo.com with NNFMP; 05 Sep 2015 20:32:12 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 379359.59597.bm@omp1019.mail.bf1.yahoo.com Received: (qmail 59056 invoked by uid 60001); 5 Sep 2015 20:32:12 -0000 X-YMail-OSG: N8BS8oUVM1kZGw_HgVGoA83bsu9aD2DQs8tkHJ8PpHe_Lcp Tc8mbsrZa3fZmuRlur0VwN2nMASly4k5Ksb6X2FyUwmsIjq32qVDcKPdz.pB irUeWhktzWsX9uaAtjqbqM2qe2S1nOGS3rxya4gb2JB2eGmUanWGPsp4nXFF 2wslN1ztC.7fUkKVKsciIL7PVbMCSb4Lib8sO.NmOciS4SOZCRinUCQ0UuAb 1VuPfCaMPh9hH9nLT7dw3.QAeE69VJn40c4Nem0_ryQ3lvK4GCQZ7JYhQWRU vLYkDs3PgBRVyVDJ7CN4T2v4mTjITipZIaGFIz93XAhVcSf.30Y4tnjClV0L Ew6ytJ.njqkfdfVG6obX4It4kZy9fbMqniVj9W7HpHSs_4NC5JbUVTFy0Far dsWqokRl_1FJTmPdFXU1uyaqb4.Vt4dB.sS3q0dhHGc7x4PatJhDolfsKAZ_ sctXJTVyGreCRDlfIh6nU7IdWwtRjhWilbQFESQ.DAacttmycOgbTTUcy4Xg SMW97vTqY2rizgWAm66u4pMZdaWQ.GazyH4f64hv7JVgsCzRVdrbCYggQlyo HX8Ue0p.Zx.GfRYqSyPc0jbSwYZToxknR Received: from [151.238.53.33] by web165005.mail.bf1.yahoo.com via HTTP; Sat, 05 Sep 2015 13:32:12 PDT X-Rocket-MIMEInfo: 002.001, SGksDQoNCk91ciBwcm9kdWN0IGlzIGJlaW5nIHRlc3RlZCB3aXRoIFNwaXJlbnQgVGVzdENlbnRlciwgYW5kIHdlJ3JlIGZhY2luZyBhbiB1bnVzdWFsIHByb2JsZW0gd2l0aCB0aGUgdGVzdHMuDQpXZSB1c2UgTklDcyB3aXRoIGludGVsIDgyNTc0IGFuZCA4MjU3NiBvbiBGcmVlQlNEIDkuMiB3aXRoIGxhdGVzdCBlbSBhbmQgaWdiIGRyaXZlcnMgKHdlIGFsc28gdGVzdGVkIHRoaXMgb24gRnJlZUJTRC0xMC4xKSBJdCBzZWVtcyB3aGF0IFNwaXJlbnQgVGVzdENlbnRlciBkb2VzIHRvIHN0YXJ0IGFueSBpbmQBMAEBAQE- X-Mailer: YahooMailBasic/651 YahooMailWebService/0.8.203.813 Message-ID: <1441485132.75285.YahooMailBasic@web165005.mail.bf1.yahoo.com> Date: Sat, 5 Sep 2015 13:32:12 -0700 From: "M. V." Subject: Problem with receiving packets right after remote-interface is up To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2015 20:35:05 -0000 Hi, Our product is being tested with Spirent TestCenter, and we're facing an unusual problem with the tests. We use NICs with intel 82574 and 82576 on FreeBSD 9.2 with latest em and igb drivers (we also tested this on FreeBSD-10.1) It seems what Spirent TestCenter does to start any individual test is, it disables its own interface, and at the beginning of the new test, it suddenly "up"s its interface and sends test packet right after that without any delay. This is where we have problem, and we don't receive this first packets most of the time (result is vary, in 100 tests, we lose about 60~70% of this "first" packets on each test, so we FAIL most of tests because apparently we need about 0.5~1 seconds after setup and renegotiation before we can receive packets) we checked both em and igb drivers and both have this problem. this is how we reproduce the problem: - connect sender-system's first port to receiver-system's first port. - In sender-system: -- ifconfig em0 down -- sleep 5 -- ifconfig em0 up && tcpreplay -l 1 -i em0 one_packet.pcap We checked, and even though sender sends packet successfully (tx led blinks), in receiver even driver doesn't receive it (rx led doesn't blink, and "rxeof" function in "if_em" tells us no new packet is received) we removed optional interface options like msix, tso, rxcsum, ... but no luck. So, does anyone know any solution for this problem? or any suggestions on where we should look or what we should do that might solve it and prevent our tests from being failed? Thank you guys.