.. | .. |
---|
45 | 45 | *cvmx_helper_interface_mode_to_string(cvmx_helper_interface_mode_t mode); |
---|
46 | 46 | |
---|
47 | 47 | /** |
---|
48 | | - * Debug routine to dump the packet structure to the console |
---|
49 | | - * |
---|
50 | | - * @work: Work queue entry containing the packet to dump |
---|
51 | | - * Returns |
---|
52 | | - */ |
---|
53 | | -extern int cvmx_helper_dump_packet(cvmx_wqe_t *work); |
---|
54 | | - |
---|
55 | | -/** |
---|
56 | | - * Setup Random Early Drop on a specific input queue |
---|
57 | | - * |
---|
58 | | - * @queue: Input queue to setup RED on (0-7) |
---|
59 | | - * @pass_thresh: |
---|
60 | | - * Packets will begin slowly dropping when there are less than |
---|
61 | | - * this many packet buffers free in FPA 0. |
---|
62 | | - * @drop_thresh: |
---|
63 | | - * All incoming packets will be dropped when there are less |
---|
64 | | - * than this many free packet buffers in FPA 0. |
---|
65 | | - * Returns Zero on success. Negative on failure |
---|
66 | | - */ |
---|
67 | | -extern int cvmx_helper_setup_red_queue(int queue, int pass_thresh, |
---|
68 | | - int drop_thresh); |
---|
69 | | - |
---|
70 | | -/** |
---|
71 | 48 | * Setup Random Early Drop to automatically begin dropping packets. |
---|
72 | 49 | * |
---|
73 | 50 | * @pass_thresh: |
---|
.. | .. |
---|
146 | 123 | * |
---|
147 | 124 | * @work: Work queue entry with packet to free |
---|
148 | 125 | */ |
---|
149 | | -static inline void cvmx_helper_free_packet_data(cvmx_wqe_t *work) |
---|
| 126 | +static inline void cvmx_helper_free_packet_data(struct cvmx_wqe *work) |
---|
150 | 127 | { |
---|
151 | 128 | uint64_t number_buffers; |
---|
152 | 129 | union cvmx_buf_ptr buffer_ptr; |
---|