--8323328-1455132787-1018702072=:31560
Content-Type: TEXT/PLAIN; charset=US-ASCII
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
This attached patch, will change the mtu size of a specific network card
to 1504 therefor supporting the receiption of packets with vlan tagging.
This can be done when the module is loaded and uses the option vlan, this
option is setup the same way as the "options" and "full_duplex" options
so:
vlan=1,0,1 will set the mtu to 1504 for the first and third card found.
It works for me, in a quick test, as i'm far from a C knowledgable person,
I have no idea how this can impact other area's of the driver, I found
some checking for the packet size being over 1500. But like i said have no
clue about the impact.
P.S. This is my first kernel patch, if there is anything wrong with it let
me know.
P.S.2. I'm not on the linux-kernel ml, could you cc the replies? Thanks in
advance.
Met Vriendelijke groet/Yours Sincerely
Stijn Jonker <SJCJonker AT sjc.nl>
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8uCj6H0P/oLuWBrcRAphAAJsGaApWJ1DGG4NcwS5mFtvQ/d06XACfSNT/
s7YW4Ju9ODsMKmyLQNu2jMU=
=UYdk
-----END PGP SIGNATURE-----
--8323328-1455132787-1018702072=:31560
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="3c59x.patch"
Content-Transfer-Encoding: BASE64
Content-Description:
Content-Disposition: attachment; filename="3c59x.patch"
LS0tIGxpbnV4LTIuNC4xNy1vcmlnL2RyaXZlcnMvbmV0LzNjNTl4LmMJU2F0
IEFwciAxMyAxNDoxMjo0MCAyMDAyDQorKysgbGludXgtMi40LjE3L2RyaXZl
cnMvbmV0LzNjNTl4LmMJU2F0IEFwciAxMyAxNDozNjo1MCAyMDAyDQpAQCAt
MTY1LDYgKzE2NSw5IEBADQogICAgIC0gQ29ycmVjdCAzYzk4MiBpZGVudGlm
aWNhdGlvbiBzdHJpbmcNCiAgICAgLSBSZW5hbWUgd2FpdF9mb3JfY29tcGxl
dGlvbigpIHRvIGlzc3VlX2FuZF93YWl0KCkgdG8gYXZvaWQgY29t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mluZSBk
ZXZfYWxsb2Nfc2tiIGRldl9hbGxvY19za2JfZGVidWcgKi8NCiANCkBAIC0x
MDI5LDcgKzEwMzcsMTEgQEANCiANCiAJZGV2LT5iYXNlX2FkZHIgPSBpb2Fk
ZHI7DQogCWRldi0+aXJxID0gaXJxOw0KLQlkZXYtPm10dSA9IG10dTsNCisJ
aWYgKGNhcmRfaWR4IDwgTUFYX1VOSVRTICYmIHZsYW5bY2FyZF9pZHhdID4g
MCApIHsNCisJCWRldi0+bXR1ID0gdm10dTsNCisJfSBlbHNlIHsNCisJCWRl
di0+bXR1ID0gbXR1Ow0KKwl9DQogCXZwLT5kcnZfZmxhZ3MgPSB2Y2ktPmRy
dl9mbGFnczsNCiAJdnAtPmhhc19ud2F5ID0gKHZjaS0+ZHJ2X2ZsYWdzICYg
SEFTX05XQVkpID8gMSA6IDA7DQogCXZwLT5pb19zaXplID0gdmNpLT5pb19z
aXplOw0K
--8323328-1455132787-1018702072=:31560--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/