OpenCores
URL https://opencores.org/ocsvn/fade_ether_protocol/fade_ether_protocol/trunk

Subversion Repositories fade_ether_protocol

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /fade_ether_protocol/trunk
    from Rev 45 to Rev 46
    Reverse comparison

Rev 45 → Rev 46

/stable_jumbo_frames_version/linux/fpga_l3_fade.c
833,7 → 833,7
//Flushed packet, store its number and length (should it be protected with spinlock?)
sd->last_pkt_num = packet_number;
//Copy the length, truncating it from 64 bits
sd->last_pkt_len = (uint32_t) * (uint64_t *) &(sd->buffer[pkt_pos+USER_LEN-sizeof(uint64_t)]);
sd->last_pkt_len = get_be_u64(&(sd->buffer[pkt_pos+USER_LEN-sizeof(uint64_t)]));
//We have received the "flushed" buffer, mark that transmission is stopped
sd->stopped_flag = 1;
//printk(KERN_INFO "set stopped flag");
869,7 → 869,7
} else {
//Flushed packet, set head right after the end of the packet
write_lock_bh(&sd->ptrs_lock);
sd->head = ((sd->last_nack_pkt-1)*USER_LEN+sd->last_pkt_len) & MY_BUF_LEN_MASK;
sd->head = ((sd->last_nack_pkt-1)*USER_LEN+8*sd->last_pkt_len) & MY_BUF_LEN_MASK;
//We have consumed the last, "flushed" buffer, so now we can set the eof flag
sd-> eof_flag = 1;
//printk(KERN_ALERT "set eof flag!");

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.