Changeset 503ce85 in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2025-08-03T09:03:10Z (7 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
adbd7e1
Parents:
5caad1d (diff), 46e2152 (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.
Message:

Merge branch 'packet-capture-pull-req' into local_master

File:
1 edited

Legend:

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

    r5caad1d r503ce85  
    175175        /** Lock for EEPROM access */
    176176        fibril_mutex_t eeprom_lock;
     177
    177178} e1000_t;
    178179
     
    11921193                if (frame != NULL) {
    11931194                        memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size);
     1195
    11941196                        nic_received_frame(nic, frame);
    11951197                } else {
     
    22012203                goto err_fun_bind;
    22022204
    2203         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    2204         if (rc != EOK)
    2205                 goto err_add_to_cat;
    2206 
     2205        rc = nic_fun_add_to_cats(fun);
     2206        if (rc != EOK) {
     2207                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     2208                ddf_fun_unbind(fun);
     2209                return rc;
     2210        }
    22072211        return EOK;
    22082212
    2209 err_add_to_cat:
    2210         ddf_fun_unbind(fun);
    22112213err_fun_bind:
    22122214err_rx_structure:
     
    23882390
    23892391        memcpy(e1000->tx_frame_virt[tdt], data, size);
    2390 
    23912392        tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]);
    23922393        tx_descriptor_addr->length = size;
Note: See TracChangeset for help on using the changeset viewer.