精华内容
下载资源
问答
  • <p>POST http://../default/_revs_diff HTTP/1.1 Accept: multipart/related, application/json Content-Type: application/json Host: sdn-couchbase.cloudapp.net Content-Length: 79 Expect: 100-continue ...
  • rs2::net_device dev("10.0.0.175"); + dev.add_to(ctx); // Declare RealSense pipeline, encapsulating the actual device and sensors - rs2::pipeline pipe; + rs2::pipeline pipe(ctx); rs...
  • hcq@server-101:~/RK3399_Linux_SDK_v2.0/kernel$ git diff drivers/net/ethernet/realtek/r8169.c diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 4eff143..0e...
    hcq@server-101:~/RK3399_Linux_SDK_v2.0/kernel$ git diff drivers/net/ethernet/realtek/r8169.c 
    diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
    index 4eff143..0e90891 100644
    --- a/drivers/net/ethernet/realtek/r8169.c
    +++ b/drivers/net/ethernet/realtek/r8169.c
    @@ -29,6 +29,7 @@
     #include <linux/prefetch.h>
     #include <linux/ipv6.h>
     #include <net/ip6_checksum.h>
    +#include <linux/soc/rockchip/rk_vendor_storage.h>
     
     #include <asm/io.h>
     #include <asm/irq.h>
    @@ -166,6 +167,8 @@ enum rtl_tx_desc_version {
            RTL_TD_1        = 1,
     };
     
    +u8 eth0_mac_addr[6] = {0,0,0,0,0,0};
    +
     #define JUMBO_1K       ETH_DATA_LEN
     #define JUMBO_4K       (4*1024 - ETH_HLEN - 2)
     #define JUMBO_6K       (6*1024 - ETH_HLEN - 2)
    @@ -7650,6 +7653,35 @@ static void rtl8169_netpoll(struct net_device *dev)
     }
     #endif
     
    +static int rk_set_vendor_mac_address(struct net_device *dev,void *p)
    +{
    +
    +  struct rtl8169_private *tp = netdev_priv(dev);
    +  int i,ret;
    +
    +  printk("%s",__func__);
    +
    +       ret = rk_vendor_read(BT_MAC_ID, eth0_mac_addr, 6);
    +       if (ret != 6 || is_zero_ether_addr(eth0_mac_addr)) {
    +                printk("%s: rk_vendor_read eth mac address failed (%d)\n",__func__, ret);               
    +               random_ether_addr(eth0_mac_addr);
    +       }
    +
    +       printk("get vendor mac address:");
    +       ether_addr_copy(dev->dev_addr,eth0_mac_addr);
    +       rtl_rar_set(tp, dev->dev_addr);
    +       
    +       for(i=0;i<6;i++){
    +               printk("%02x",eth0_mac_addr[i]);
    +       }
    + 
    +
    + return 0;
    +
    +}
    +
    +
    +
     static int rtl_open(struct net_device *dev)
     {
            struct rtl8169_private *tp = netdev_priv(dev);
    @@ -7659,6 +7691,10 @@ static int rtl_open(struct net_device *dev)
     
            pm_runtime_get_sync(&pdev->dev);
     
    +       if(!is_valid_ether_addr(eth0_mac_addr)){
    +
    +           rk_set_vendor_mac_address(dev,tp);
    +       }
            /*
             * Rx and Tx descriptors needs 256 bytes alignment.
             * dma_alloc_coherent provides more.
    @@ -8355,6 +8391,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
     
                    *(u32 *)&mac_addr[0] = rtl_eri_read(tp, 0xe0, ERIAR_EXGMAC);
                    *(u16 *)&mac_addr[2] = rtl_eri_read(tp, 0xe4, ERIAR_EXGMAC);
    +               
     
                    if (is_valid_ether_addr((u8 *)mac_addr))
                            rtl_rar_set(tp, (u8 *)mac_addr);
    (END)
    
    
    
    @@ -8154,7 +8155,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
            struct net_device *dev;
            void __iomem *ioaddr;
            int chipset, i;
    -       int rc;
    +       int rc,ret;
    
            if (netif_msg_drv(&debug)) {
                    printk(KERN_INFO "%s Gigabit Ethernet driver %s loaded\n",
    @@ -8345,15 +8346,37 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
                tp->mac_version == RTL_GIGA_MAC_VER_50 ||
                tp->mac_version == RTL_GIGA_MAC_VER_51) {
                    u16 mac_addr[3];
    
                    *(u32 *)&mac_addr[0] = rtl_eri_read(tp, 0xe0, ERIAR_EXGMAC);
                    *(u16 *)&mac_addr[2] = rtl_eri_read(tp, 0xe4, ERIAR_EXGMAC);
    +               
    +               if(!is_valid_ether_addr((u8 *)mac_addr))
    +               {
    +                        ret = rk_vendor_read(BT_MAC_ID, eth0_mac_addr, 6);
    +                     if (ret != 6 || is_zero_ether_addr(eth0_mac_addr)) {
    +                       printk("%s: rk_vendor_read eth mac address failed (%d)\n",__func__, ret);               
    +                       random_ether_addr(eth0_mac_addr);
    +                       
    +                       }
    +               }
    +               *(u32 *)&mac_addr[0] = (eth0_mac_addr[3] | eth0_mac_addr[2] << 8 | eth0_mac_addr[1] << 16 | eth0_mac_addr[0] << 24);
    +               *(u16 *)&mac_addr[2] = (eth0_mac_addr[4] << 8 | eth0_mac_addr[5]);
    +               
    +               printk("%s flash mac:",__func__);
    +               for(i=0;i<3;i++){
    +                       printk("%04x ",mac_addr[i]);
    +               }
    +                               
    
                    if (is_valid_ether_addr((u8 *)mac_addr)){
    +				        ether_addr_copy(dev->dev_addr,eth0_mac_addr);
                            rtl_rar_set(tp, (u8 *)mac_addr);
    				}
            }
    -       for (i = 0; i < ETH_ALEN; i++)
    +       printk("%s read controller mac address: ",__func__);
    +       for (i = 0; i < ETH_ALEN; i++){
                    dev->dev_addr[i] = RTL_R8(MAC0 + i);
    +               printk("%02x:",dev->dev_addr[i]);
    +       }
    
            dev->ethtool_ops = &rtl8169_ethtool_ops;
            dev->watchdog_timeo = RTL8169_TX_TIMEOUT;
    
    展开全文
  • NET_ADMIN</code>. However, I need to get these capabilities when building my container via <code>docker build</code> (from a Dockerfile), or when running a bunch of serivces using <code>docker-compose...
  • topic/ros-sig-robot-control/18VRoTEV1vM">here, the behaviour of diff_drive_controller when passed a -ve dt for update period is very undesireable. <p>This can be warned against in docs/tutorials, but ...
  • <p>This PR adds suppress function for those settings (<code>metric</code> and <code>log), the function will suppress diff only when the old settings have "net" more elements than the new one, ...
  • ${google_compute_network.cluster-net.self_link}" region = "us-east4" secondary_ip_range { range_name = "container-range-1" ip_cidr_range = "172.20.0.0/16" ...
  • <p>I modified regression_output-inl.h according to mxnet_diff.patch (git apply mxnet_diff.patch), but the issue still appears. Could you please help me out? Thanks.</p><p>该提问来源于开源项目:...
  • Net() device = 'cpu' if torch.cuda.is_available(): device = 'cuda' # model = model.to(device) optimizer = SGD(model.parameters(), lr=lr, momentum=...
  • <div><p>Issue Type: Bug <p>Install mssql extension, Receive an error "...partial-diff ryu 1.4.0 vscode-hexdump sle 1.7.2</p><p>该提问来源于开源项目:microsoft/vscode-mssql</p></div>
  • diff --git a/src/mac/LoRaMac.c b/src/mac/LoRaMac.c index fc8220b..69c09aa 100644 --- a/src/mac/LoRaMac.c +++ b/src/mac/LoRaMac.c @@ -1471,7 +1471,7 @@ static void ...
  • </li><li>% of plants w/ gen v gen_fuel diff that have >1 prime mover: 91.39%</li><li>% of plants for which the generators missing from the gen table are all only one prime_move_code: 92.07%</li></...
  • diff --git a/os/net/ipv6/uip-ds6-nbr.c b/os/net/ipv6/uip-ds6-nbr.c index f937986b5..619e9c347 100644 --- a/os/net/ipv6/uip-ds6-nbr.c +++ b/os/net/ipv6/uip-ds6-nbr.c @@ -60,7 +...
  • struct net_buf *bt_att_create_pdu(struct bt_conn *conn, u8_t op, size_t len) { struct bt_att *att; struct bt_att_chan *chan, *tmp; + u16_t max_mtu = 0; att = att_get(conn); if (!att...
  • diff --git a/Net/src/SocketImpl.cpp b/Net/src/SocketImpl.cpp index a142807..70d7883 100644 --- a/Net/src/SocketImpl.cpp +++ b/Net/src/SocketImpl.cpp @@ -19,6 +19,7 @@ ...
  • dev.o: changed function: dev_change_net_namespace dev.o: changed function: dev_get_nest_level dev.o: changed function: __netdev_update_features dev.o: changed function: register_netdevice /usr/local/...
  • $ readelf -s ./net/ipv6/netfilter.o ... [16] .rodata.<strong>func</strong>.63533 [17] .rodata.fake_sk.63553 [18] .rela.rodata.fake_sk.63553 ... [28] .toc PROGBITS [29] .rela.toc RELA [30] .data ...
  • Diff < left / right > : <0 >1 ', core/src/network/reducers/handle_get_links_result.rs:17:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. ...
  • use_07_metric, use_diff=self.config['use_diff']) File "/home/xupt/awesome-tensorflow/tf-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 122, in voc_eval pickle.dump(recs, f)...
  • loopback_net_init+0x46/0xa0 [ 2.127859] ? raw_sysctl_init+0x8/0x8 [ 2.127859] ? ops_init+0x8f/0x150 [ 2.127859] ? register_pernet_operations.llvm.14706795064528744033+0xbc/0x2f0 [ 2....
  • diff --git a/boost/beast/core/basic_stream.hpp b/boost/beast/core/basic_stream.hpp index 25076059e..265489f91 100644 --- a/boost/beast/core/basic_stream.hpp +++ b/boost/beast/core/basic_...
  • net_nbuf_set_ip_hdr_len(buf, NET_IPV6H_LEN); </li><li> <p>NET_DBG("2: CIPHC[0] 0x%x, CIPHC[1] 0x%x", CIPHC[0], CIPHC[1]); + /<em> Uncompress Traffic class and Flow label </em>/ offset &...
  • [ 128.549215] Modules linked in: vhost_net vhost macvtap macvlan xt_conntrack ipt_REJECT nf_reject_ipv4 kpatch_patch(OE) isofs ebtable_filter ebtables ip6table_filter ip6_tables xt_CHECKSUM iptable_...
  • ~/devel/openwrt$ ./scripts/diffconfig.sh | fgrep -v ar71xx CONFIG_TARGET_ath79=y CONFIG_TARGET_ath79_generic=y CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c7-v2=y CONFIG_KMOD_BATMAN_...
  • <div><h3>Library Version <p>Example: 2.1.0-db207 <h3>.NET Runtime <p>.NET Core 207 ...git checkout feature/diff-cbl20-master</p><p>该提问来源于开源项目:couchbase/couchbase-lite-net</p></div>
  • <h5>ISSUE TYPE <ul><li>Bug Report</li></ul> <h5>COMPONENT NAME <p>bigip_firewall_address_list.py (replaces bigip_security_address_list.py & alias support) <h5>ANSIBLE VERSION ...
  • diff --git a/Classes/NSAppearance+PBDarkMode.m b/Classes/NSAppearance+PBDarkMode.m index bd93c39d..13390726 100644 --- a/Classes/NSAppearance+PBDarkMode.m +++ b/Classes/...
  • Tests failed: System.Net....

    2021-01-11 10:24:31
    at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) in E:\A\_work\640\s\corefx\src\System.Net.Security\src\System\Net\Security\SslState.cs:line 864 ...
  • ares_inet_pton() and CIDR

    2020-12-06 00:50:17
    <div><p>When building C-ares without <code>-DHAVE_INET_PTON, the code in <code>inet_net_pton.c</code> accepts an address like <code>a.c.d/8</code>. And thus returns (as the comment for <code>inet_...
  • net_diff_dst(batch *32* channel * 28 * 28); for (size_t i = 0; i < net_diff_dst.size(); ++i) net_diff_dst[i] = sinf((float)i); /* create memory for user diff dst data */ ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,170
精华内容 468
关键字:

Net_Diff