Changeset 87488278 in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2024-06-27T08:07:31Z (6 days ago)
Author:
GitHub <noreply@…>
Parents:
af3235d (diff), 2a0c827c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-06-27 08:07:31)
git-committer:
GitHub <noreply@…> (2024-06-27 08:07:31)
Message:

Merge 2a0c827c42eafb070de3bbe3c98a1d8a2b77d719 into af3235d07726dfc8b146c760a25544ea3ac29f9d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    raf3235d r87488278  
    4949#include <nic.h>
    5050#include <ops/nic.h>
     51#include <pcapdump_iface.h>
    5152#include "e1k.h"
    5253
     
    174175        /** Lock for EEPROM access */
    175176        fibril_mutex_t eeprom_lock;
     177
    176178} e1000_t;
    177179
     
    11891191                if (frame != NULL) {
    11901192                        memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size);
     1193
    11911194                        nic_received_frame(nic, frame);
    11921195                } else {
     
    21982201                goto err_fun_bind;
    21992202
    2200         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    2201         if (rc != EOK)
    2202                 goto err_add_to_cat;
    2203 
     2203        rc = nic_fun_add_to_cats(fun);
     2204        if (rc != EOK) {
     2205                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     2206                ddf_fun_unbind(fun);
     2207                return rc;
     2208        }
    22042209        return EOK;
    22052210
    2206 err_add_to_cat:
    2207         ddf_fun_unbind(fun);
     2211        // err_add_to_cat:
     2212        // ddf_fun_unbind(fun);
    22082213err_fun_bind:
    22092214err_rx_structure:
     
    23652370
    23662371        memcpy(e1000->tx_frame_virt[tdt], data, size);
    2367 
    23682372        tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]);
    23692373        tx_descriptor_addr->length = size;
Note: See TracChangeset for help on using the changeset viewer.