Skip to content

Function call parameter mismatch in two port MAC #62

@ahogen

Description

@ahogen

How does this function call...

// In file: src/full/ethernet_server.xc    line #65
ethernet_tx_server(mac_address, tx, 2, num_tx, smi1, null);

... match the interface (below)...

// In file: src/full/ethernet_tx_server.xc    line #112
#pragma unsafe arrays
    void ethernet_tx_server(
#if ETHERNET_TX_HP_QUEUE
                        mii_mempool_t tx_mem_hp[],
#endif
                        mii_mempool_t tx_mem_lp[],
                        int num_q,
                        mii_ts_queue_t ts_queue[],
                        const char mac_addr[],
                        chanend tx[],
                        int num_tx,
                        smi_interface_t &?smi1,
                        smi_interface_t &?smi2)

The MAC address and queuing parameter positions are completely mismatched. How was this ever supposed to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions