Changeset 9ce251c7 in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2024-12-13T08:32:55Z (10 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
8765039
Parents:
91042127
git-author:
Nataliia Korop <n.corop08@…> (2024-03-10 09:38:44)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:32:55)
Message:

moved to nic, fixed all except addressing

File:
1 edited

Legend:

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

    r91042127 r9ce251c7  
    4949#include <nic.h>
    5050#include <ops/nic.h>
     51#include <pcapdump_iface.h>
    5152#include "e1k.h"
    5253
    53 #include "pcapdump_iface.h"
    54 #include "pcap_iface.h"
    5554#define NAME  "e1k"
    5655
     
    11921191                if (frame != NULL) {
    11931192                        memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size);
    1194                         pcapdump_packet(nic_get_pcap_iface(nic), frame->data, frame->size);
    11951193
    11961194                        nic_received_frame(nic, frame);
     
    22072205                goto err_add_to_cat;
    22082206
    2209         errno_t pcap_rc  = pcapdump_init(nic_get_pcap_iface(nic));
    2210 
    2211         if (pcap_rc != EOK) {
    2212                 printf("Failed creating pcapdump port\n");
    2213         }
    22142207        rc = ddf_fun_add_to_category(fun, "pcap");
    2215         if (rc != EOK)
     2208        if (rc != EOK) {
     2209                ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
    22162210                goto err_add_to_cat;
     2211        }
    22172212
    22182213        return EOK;
     
    23792374
    23802375        memcpy(e1000->tx_frame_virt[tdt], data, size);
    2381         pcapdump_packet(nic_get_pcap_iface(nic), data, size);
    23822376        tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]);
    23832377        tx_descriptor_addr->length = size;
Note: See TracChangeset for help on using the changeset viewer.