Date: Tue, 22 Nov 2011 10:59:14 +0400 From: =?UTF-8?B?QW5kcmV5IFNtYWdpbg==?= <samspeed@mail.ru> To: =?UTF-8?B?WW9uZ0h5ZW9uIFBZVU4=?= <pyunyh@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re[2]: PCI-E VT6130 NIC (if_vge) hang system with gigabit link Message-ID: <E1RSkK2-0004kJ-00.samspeed-mail-ru@f58.mail.ru> In-Reply-To: <20111102020532.GF6914@michelle.cdnetworks.com> References: <E1RIaki-0002pq-00.samspeed-mail-ru@f197.mail.ru> <20111101180135.GD6914@michelle.cdnetworks.com> <20111102020532.GF6914@michelle.cdnetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
SGkhIFNvbWUgZGF5cyBiYWNrIEkgcHV0IGNhcmQgaW4gV2luNyBtYWNoaW5lLiAKV2luNyBoYW5n IG93biBuZXR3b3JrIHN1YnN5c3RlbSBpZiBjb25uZWN0ZWQgdG8gZ2lnYWJpdCBzd2l0Y2guIApJ IHRyaWVkIGxhc3QgbmlnaHQgeW91ciBwYXRjaGVzLiBOb3cgd2hlbiBwdXQgaW4gZ2lnYWJpdCBz d2l0Y2ggbm8gaGFuZ3Mgb3IgZXJyb3JzLCAKYnV0IGxpbmsgKGF1dG9kZXRlY3QpIDEwMG1iaXQv cyBhbmQgd29yayBnb29kLiAKSSB0aGluayBJIGJvdWdodCBidWdneSBuZXR3b3JrIGNhcmRzIDoo KC4KCgoKSW5kZXg6IHN5cy9kZXYvbWlpL2lwMTAwMHBoeS5jCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9k ZXYvbWlpL2lwMTAwMHBoeS5jCShyZXZpc2lvbiAyMjc1MDEpCisrKyBzeXMvZGV2L21paS9pcDEw MDBwaHkuYwkod29ya2luZyBjb3B5KQpAQCAtMzI0LDcgKzMyNCw2IEBACiAJUEhZX1dSSVRFKHNj LCBJUDEwMDB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CUNTUl9DTFJCSVRfMShzYywgVkdFX0RJQUdDVEwsIFZHRV9ESUFHQ1RM X01BQ0ZPUkNFKTsKKwlDU1JfQ0xSQklUXzEoc2MsIFZHRV9ESUFHQ1RMLCBWR0VfRElBR0NUTF9G RFhGT1JDRSk7CiAJdmdlX21paWJ1c193cml0ZXJlZyhzYy0+dmdlX2Rldiwgc2MtPnZnZV9waHlh ZGRyLCBNSUlfMTAwVDJDUiwgMCk7CiAJdmdlX21paWJ1c193cml0ZXJlZyhzYy0+dmdlX2Rldiwg c2MtPnZnZV9waHlhZGRyLCBNSUlfQU5BUiwKIAkgICAgQU5BUl9UWF9GRCB8IEFOQVJfVFggfCBB TkFSXzEwX0ZEIHwgQU5BUl8xMCB8IEFOQVJfQ1NNQSk7Cgo=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1RSkK2-0004kJ-00.samspeed-mail-ru>