Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- From: Julian Elischer <julian@xxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 20:18:29 -0700
Alan Garfield wrote:
Peter Jeremy wrote:Given that we are effectivly dealing with a shared memory block, how
does the SP now when the server has finished writing and vice versa?
Is jnet's handling of multiple mbufs making the SP think there are
multiple packets?
D'oh! /me slaps forehead
I wondereded what the NAK response I saw I was getting after each TX. RX gets an interrupt, TX gets a NAK.
If I block sending the next packet until I receive a NAK or I timeout that should fix it. Silly silly boy!
I'd say you need to wait for an ACK not a NAK
Your jnet_start() routine fills the tail of the buffer w/zeros
already, doesn't it?
I would also suggest padding to 256 bytes with zeroes.
Already does that as Yar correctly pointed out. The ADDR port is reset to zero, a bus_space_write_multi1 dumps into the DATA port the packet till there is no packet left, and a for loop fills what's left.
Thanks,
Alan.
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- References:
- Re: rtentry and rtrequest
- From: Alan Garfield
- Re: rtentry and rtrequest
- From: Yar Tikhiy
- Re: rtentry and rtrequest
- From: Alan Garfield
- Re: rtentry and rtrequest
- From: Yar Tikhiy
- Re: rtentry and rtrequest
- From: Alan Garfield
- Re: rtentry and rtrequest
- From: Yar Tikhiy
- Re: rtentry and rtrequest
- From: Alan Garfield
- Re: rtentry and rtrequest
- From: Yar Tikhiy
- Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- From: Alan Garfield
- Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- From: Yar Tikhiy
- Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- From: Peter Jeremy
- Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- From: Alan Garfield
- Re: rtentry and rtrequest
- Prev by Date: Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- Next by Date: Re: em0 - bge0 failed to work at 1000baseTX
- Previous by thread: Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
- Next by thread: Re: rtentry and rtrequest
- Index(es):
Relevant Pages
- Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest)
... Is jnet's handling of multiple mbufs making the SP think there are ... I wondereded
what the NAK response I saw I was getting after each TX. ... The ADDR port is reset
to zero, a bus_space_write_multi1 dumps into the DATA port the packet till there is no packet
left, and a for loop fills what's left. ... (freebsd-net) - Inter-thread communications
... The read thread must input the packet, ... It must also forward any ACK or NAK
received to the transmit ... There is no chance of an ACK or NAK embedded
in the packet, ... (perl.beginners) - Intermixing expected and unanticipated serial comms reads
... Serial communications with QIO ... I send a packet and then must read
a packet which contains an ACk or ... NAK. ... timeout period, the serial
driver is great because of timeout support in ... (comp.os.vms) - Re: File transfer protocol for Radio Links
... >relatively small files but the transmission fails at the first bad ... Add
a message number and a packet number to the front of the packet and ... the receiving
end sends a nak or negative acknowledge. ... (sci.electronics.design)