Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function call parameter mismatch in two port MAC #62

Open
ahogen opened this issue May 26, 2017 · 0 comments
Open

Function call parameter mismatch in two port MAC #62

ahogen opened this issue May 26, 2017 · 0 comments

Comments

@ahogen
Copy link

ahogen commented May 26, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant