LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* sun neptune driver
@ 2008-02-19 13:53 Omar Schiaratura
0 siblings, 0 replies; only message in thread
From: Omar Schiaratura @ 2008-02-19 13:53 UTC (permalink / raw)
i'm trying to write a back-porting of the Sun neptune NIC driver(niu module) in kernel 2.6.24 to the kernel 2.6.20
because i need that driver in a xen linux environment.
The driver now compile and goes up clearly, NIC is configured, but doesn't work properly.
If i send packets to another machine with the same NIC and kernel 2.6.24,I saw with tcpdump that the packets was received and the answer was sent,
but at the other end (kernel 2.6.20 with my backported driver, and without XEN) nothing appens (tcpdump report sent packages, but i can't see anything sent from other side)
Do you have some tricks for me or can you suggest me something to do?
Some of the problem i encountered during port is that i can't find a function equivalent to compound_head, and if i port it to the source i can't find a way to use
an equivalent variable like page->first_page found in compound_head.
another proble was the folowing function:
static inline unsigned char *skb_transport_header(const struct sk_buff *skb)
return (unsigned char *)((unsigned int)skb->head + (unsigned int)skb->h.raw);
that get the error: "error: invalid operands to binary +"
if i can't cast it in unsigned int, the same in skb_network_header (both back-ported from include/skbuff.h)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-19 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-19 13:53 sun neptune driver Omar Schiaratura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).