Do not align the first recv_frame allocated

There is basically no point allocated only the first struct recv_frame
allocated. The entries are carved out of a larger block, and these are
pure Linux kernel entries, there are no DMA alignment requirements.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
ENDIAN_FREE is always defined to 1 - eliminate the #ifdefs

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove obsolete 2.6.25 comment

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unnecessary typecasting for buffers passed to {read,write}_port()

There is no reason to typecast xmit_buf/recv_buf pointers to u8 * when
calling {read,write}_port()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused async_{read,write}() prototypes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused transfer_len from struct recv_buf

The value is kept in skb->len, no reason to duplicate it, especially
since we never read it.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
A recv_buf is always 'reusable' if there is a valid skb pointer

There is no point in maintaining the 'reuse' flag when we always check
for a valid skb pointer anyway

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Readbility fixes

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused reference counting from recv_buf

There isn't much point in having a reference counter that we reset to
zero, and only decrement, but never read back.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused palloced_buf from struct recv_buf

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Replace last dev_alloc_skb() usage

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>