-
POST: db/_revs_diff returns 417 instead of 100
2020-12-30 06:35:35<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 ... -
Measure distance using net_device
2021-01-11 19:15:25rs2::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... -
r8111_fix_mac_address.diff(Rockchip提供for RK3399 Linux SDK)
2020-10-13 14:42:38hcq@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;
-
Add NET_ADMIN capability in build/Dockerfile/docker-compose up
2021-01-06 17:12:47NET_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... -
diff_drive_controller reacts badly to dt < 0
2020-12-01 15:58:02topic/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 ... -
monitor_diagnostic_setting: suppress diff on metric/log against default value
2020-11-30 15:43:06<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, ... -
Perma-diff when using self_link for network or subnetwork in google_container_cluster
2020-11-27 18:49:15${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" ... -
"Cannot find argument 'out_grad'" when using train_P_net.py
2021-01-01 01:42:43<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>该提问来源于开源项目:... -
create_supervised_trainer fails if model device is diff from arg device
2021-01-08 11:59:23Net() device = 'cpu' if torch.cuda.is_available(): device = 'cuda' # model = model.to(device) optimizer = SGD(model.parameters(), lr=lr, momentum=... -
UNABLE_TO_GET_ISSUER_CERT_LOCALLY
2020-11-26 20:31:58<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> -
confirmed_message_data_rate_should_decrease_only_when_adr_is_on
2020-11-29 09:03:10diff --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 ... -
investigate difference in net get from generation_eia923 vs generation_fuel_eia923 tables
2020-12-09 05:46:15</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></... -
Introduce UIP_DS6_NBR_MULTI_IPV6_ADDRS
2020-12-28 14:46:49diff --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 +... -
mcumgr: smp_bt: wrong notify MTU calculation with CONFIG_BT_GATT_NOTIFY_MULTIPLE
2021-01-10 05:14:17struct 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... -
NetSSL_Win: I/O error: bad address in SSL handshake
2021-01-12 06:07:59diff --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 @@ ... -
kpatch-build: find_local_syms for mpls_gso.c: found_none
2020-11-23 13:10:37dev.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/... -
create-diff-object: Use .rela.toc as list head in kpatch_correlate_st…
2020-11-23 13:14:45$ 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 ... -
handle_get_links_result panic
2020-11-25 07:32:11Diff < 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. ... -
Error:run ./experiments/scripts/test_faster_rcnn.sh 0 pascal_voc vgg16
2021-01-09 07:52:08use_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)... -
CFI violations due to run_on_irqstack_cond
2020-12-09 00:31:19loopback_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.... -
basic_stream::expires_after() should use ...
2021-01-07 11:08:24diff --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_... -
6lo uncompress_IPHC_header overwrites IPHC fields
2021-01-10 04:55:06net_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 &... -
Crashes when patching kvm_arch_vm_ioctl
2020-11-23 13:10:58[ 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_... -
batman-adv Compile Fails with _ADV_DEBUG_LOG=y
2020-12-09 00:18:19~/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_... -
Docs are not getting deleted for delete in CBL app for test_default_conflict_scenario_delete_win ...
2020-12-25 19:31:52<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> -
bigip_firewall_address_list.py - inconsistent handling of IP/CIDR variables
2020-12-02 10:26:10<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 ... -
Symbol not found: _dispatch_assert_queue$V2
2020-12-28 05:58:03diff --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:31at 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_... -
3d MaxPooling forward is very slower than backward when input format is ncdhw
2020-12-02 02:01:21net_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,170
精华内容
468