Re: [PATCH net-2.6.24] remove bogus qeth type check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Thursday, October 11, 2007 - 5:24 pm

From: Stephen Hemminger <shemminger@linux-foundation.org>
Date: Thu, 11 Oct 2007 13:24:58 -0700


Stephen this change is not right.

In order to preserve the semantics that existed before your
headerops changes, this test must be there.  From the original
qeth_main.c code:

	if (qeth_get_netdev_flags(card) & IFF_NOARP) {
		dev->rebuild_header = NULL;
		dev->hard_header = NULL;
		dev->header_cache_update = NULL;
		dev->hard_header_cache = NULL;
	}
 ...
	if (card->options.fake_ll &&
		(qeth_get_netdev_flags(card) & IFF_NOARP))
			dev->hard_header = qeth_fake_header;
	if (dev->type == ARPHRD_IEEE802_TR)
		dev->hard_header_parse = NULL;
	else
		dev->hard_header_parse = qeth_hard_header_parse;

With the way you set up headerops in the driver, the only way
to preserve the ARPHRD_IEEE802_TR guard, is to keep the
test that you added to qeth_hard_header_parse().

Andrew, please go back to using the first patch you wrote to
fix the build, alternative resync with net-2.6.git as that
version of the build fix is there too.

Thans.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: + git-net-fix-qeth_main.patch added to -mm tree, David Miller, (Thu Oct 11, 2:45 am)
[PATCH net-2.6.24] remove bogus qeth type check, Stephen Hemminger, (Thu Oct 11, 1:24 pm)
Re: [PATCH net-2.6.24] remove bogus qeth type check, David Miller, (Thu Oct 11, 2:44 pm)
Re: [PATCH net-2.6.24] remove bogus qeth type check, David Miller, (Thu Oct 11, 2:46 pm)
Re: [PATCH net-2.6.24] remove bogus qeth type check, David Miller, (Thu Oct 11, 5:24 pm)
Re: [PATCH net-2.6.24] remove bogus qeth type check, Stephen Hemminger, (Thu Oct 11, 5:52 pm)
Re: [PATCH net-2.6.24] remove bogus qeth type check, David Miller, (Thu Oct 11, 5:59 pm)