]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: support extended data RX protocol (no need to reallocate skbs)
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Sat, 28 Feb 2009 23:42:52 +0000 (23:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 11:10:26 +0000 (03:10 -0800)
commit68a8cce0bf5f375c9e751b73d72c171f1ccf45e5
tree0f64176368c6ffb5b4f95abf37b422bfba7fdd6e
parent2cb72243c4596236e7f4120955e5ad81cebb176f
wimax/i2400m: support extended data RX protocol (no need to reallocate skbs)

Newer i2400m firmwares (>= v1.4) extend the data RX protocol so that
each packet has a 16 byte header. This header is mainly used to
implement host reordeing (which is addressed in later commits).

However, this header also allows us to overwrite it (once data has
been extracted) with an Ethernet header and deliver to the networking
stack without having to reallocate the skb (as it happened in fw <=
v1.3) to make room for it.

- control.c: indicate the device [dev_initialize()] that the driver
  wants to use the extended data RX protocol. Also involves adding the
  definition of the needed data types in include/linux/wimax/i2400m.h.

- rx.c: handle the new payload type for the extended RX data
  protocol. Prepares the skb for delivery to
  netdev.c:i2400m_net_erx().

- netdev.c: Introduce i2400m_net_erx() that adds the fake ethernet
  address to a prepared skb and delivers it to the networking
  stack.

- cleanup: in most instances in rx.c, the variable 'single' was
  renamed to 'single_last' for it better conveys its meaning.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/control.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/netdev.c
drivers/net/wimax/i2400m/rx.c
include/linux/wimax/i2400m.h