Date: Thu, 26 Apr 2012 15:23:19 +0400 From: Andrey Zonov <andrey@zonov.org> To: freebsd-net@freebsd.org Cc: davidch@freebsd.org Subject: bce: jumbo not working since r218423 Message-ID: <CANU_PUGwoLSrPcGE8wT=ga3-=F_n9qN4pPXMJC%2BH72wpS9Mfcw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--f46d0442811e0fd8b804be9337ae Content-Type: text/plain; charset=ISO-8859-1 Hi, I found that jumbo frames don't work after r218423 with bce driver. This happens because controller doesn't do reinitialization when MTU is changed. Attached patch solves this problem. I also don't understand why sysctl hw.bce.loose_rx_mtu doesn't respect with tunnable hw.bce.strict_rx_mtu. Is there any reason to give them different names? -- Andrey Zonov --f46d0442811e0fd8b804be9337ae Content-Type: application/octet-stream; name="if_bce.c.patch" Content-Disposition: attachment; filename="if_bce.c.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h1hp1r1c0 SW5kZXg6IHN5cy9kZXYvYmNlL2lmX2JjZS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvYmNlL2lm X2JjZS5jCShyZXZpc2lvbiAyMzQ2MDApCisrKyBzeXMvZGV2L2JjZS9pZl9iY2UuYwkod29ya2lu ZyBjb3B5KQpAQCAtNzQxNSw3ICs3NDE1LDcgQEAKIAlzdHJ1Y3QgYmNlX3NvZnRjICpzYyA9IGlm cC0+aWZfc29mdGM7CiAJc3RydWN0IGlmcmVxICppZnIgPSAoc3RydWN0IGlmcmVxICopIGRhdGE7 CiAJc3RydWN0IG1paV9kYXRhICptaWk7Ci0JaW50IG1hc2ssIGVycm9yID0gMDsKKwlpbnQgbWFz aywgZXJyb3IgPSAwLCByZWluaXQgPSAwOwogCiAJREJFTlRFUihCQ0VfVkVSQk9TRV9NSVNDKTsK IApAQCAtNzQzNiwyMSArNzQzNiwxOSBAQAogCiAJCUJDRV9MT0NLKHNjKTsKIAkJaWZwLT5pZl9t dHUgPSBpZnItPmlmcl9tdHU7CisJCWlmIChpZnAtPmlmX2Rydl9mbGFncyAmIElGRl9EUlZfUlVO TklORykgeworCQkJLyoKKwkJCSAqIEl0IG1heSBiZSByZXF1ZXN0ZWQgdG8gdHVybiBvbi9vZmYg anVtYm8KKwkJCSAqIGZyYW1lcywgc28gcmVpbml0IGNvbnRyb2xsZXIuCisJCQkgKi8KKwkJCWJj ZV9zdG9wKHNjKTsKKwkJCXJlaW5pdCA9IDE7CisJCX0KIAotCQlpZiAoYmNlX2hkcl9zcGxpdCA9 PSBGQUxTRSkgewotCQkJaWYgKGlmcC0+aWZfZHJ2X2ZsYWdzICYgSUZGX0RSVl9SVU5OSU5HKSB7 Ci0JCQkJLyoKLQkJCQkgKiBCZWNhdXNlIGFsbG9jYXRpb24gc2l6ZSBpcyB1c2VkIGluIFJYCi0J CQkJICogYnVmZmVyIGFsbG9jYXRpb24sIHN0b3AgY29udHJvbGxlciBpZgotCQkJCSAqIGl0IGlz IGFscmVhZHkgcnVubmluZy4KLQkJCQkgKi8KLQkJCQliY2Vfc3RvcChzYyk7Ci0JCQl9Ci0KKwkJ aWYgKGJjZV9oZHJfc3BsaXQgPT0gRkFMU0UpCiAJCQliY2VfZ2V0X3J4X2J1ZmZlcl9zaXplcyhz YywgaWZwLT5pZl9tdHUpOwotCisJCWlmIChyZWluaXQpCiAJCQliY2VfaW5pdF9sb2NrZWQoc2Mp OwotCQl9CiAKIAkJQkNFX1VOTE9DSyhzYyk7CiAJCWJyZWFrOwo= --f46d0442811e0fd8b804be9337ae--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANU_PUGwoLSrPcGE8wT=ga3-=F_n9qN4pPXMJC%2BH72wpS9Mfcw>