e1000e_write_lgcy_rx_descr(E1000ECore *core, uint8_t *desc,

                           struct NetRxPkt *pkt,

                           const E1000E_RSSInfo *rss_info,

                           uint16_t length)

{

    uint32_t status_flags, rss, mrq;

    uint16_t ip_id;



    struct e1000_rx_desc *d = (struct e1000_rx_desc *) desc;



    memset(d, 0, sizeof(*d));



    assert(!rss_info->enabled);



    d->length = cpu_to_le16(length);



    e1000e_build_rx_metadata(core, pkt, pkt != NULL,

                             rss_info,

                             &rss, &mrq,

                             &status_flags, &ip_id,

                             &d->special);

    d->errors = (uint8_t) (le32_to_cpu(status_flags) >> 24);

    d->status = (uint8_t) le32_to_cpu(status_flags);

}

e1000e_write_lgcy_rx_descr(E1000ECore *core, uint8_t *desc,

                           struct NetRxPkt *pkt,

                           const E1000E_RSSInfo *rss_info,

                           uint16_t length)

{

    uint32_t status_flags, rss, mrq;

    uint16_t ip_id;



    struct e1000_rx_desc *d = (struct e1000_rx_desc *) desc;



    memset(d, 0, sizeof(*d));



    assert(!rss_info->enabled);



    d->length = cpu_to_le16(length);



    e1000e_build_rx_metadata(core, pkt, pkt != NULL,

                             rss_info,

                             &rss, &mrq,

                             &status_flags, &ip_id,

                             &d->special);

    d->errors = (uint8_t) (le32_to_cpu(status_flags) >> 24);

    d->status = (uint8_t) le32_to_cpu(status_flags);

}

    memset(d, 0, sizeof(*d));     memset(d, 0, sizeof(*d));     memset(d, 0, sizeof(*d));
FUNC_0(E1000ECore *VAR_0, uint8_t *VAR_1,

                           struct NetRxPkt *VAR_2,

                           const E1000E_RSSInfo *VAR_3,

                           uint16_t VAR_4)

{

    uint32_t status_flags, rss, mrq;

    uint16_t ip_id;



    struct e1000_rx_desc *VAR_5 = (struct e1000_rx_desc *) VAR_1;



    memset(VAR_5, 0, sizeof(*VAR_5));



    assert(!VAR_3->enabled);



    VAR_5->VAR_4 = cpu_to_le16(VAR_4);



    e1000e_build_rx_metadata(VAR_0, VAR_2, VAR_2 != NULL,

                             VAR_3,

                             &rss, &mrq,

                             &status_flags, &ip_id,

                             &VAR_5->special);

    VAR_5->errors = (uint8_t) (le32_to_cpu(status_flags) >> 24);

    VAR_5->status = (uint8_t) le32_to_cpu(status_flags);

}

FUNC_0(E1000ECore *VAR_0, uint8_t *VAR_1,
struct NetRxPkt *VAR_2,
const E1000E_RSSInfo *VAR_3,
uint16_t VAR_4)
{ uint32_t status_flags, rss, mrq; uint16_t ip_id; struct e1000_rx_desc *VAR_5 = (struct e1000_rx_desc *) VAR_1; memset(VAR_5, 0, sizeof(*VAR_5)); assert(!VAR_3->enabled); VAR_5->VAR_4 = cpu_to_le16(VAR_4); e1000e_build_rx_metadata(VAR_0, VAR_2, VAR_2 != NULL,
VAR_3,
&rss, &mrq,
&status_flags, &ip_id,
&VAR_5->special); VAR_5->errors = (uint8_t) (le32_to_cpu(status_flags) >> 24); VAR_5->status = (uint8_t) le32_to_cpu(status_flags); }