Bug 678 : APV 9800 device self-rebooted |AS-12512| NPCI-UPI

Review Request #267 — Created May 28, 2024 and updated

rvempati
APV10
rel_apv_10_4_0_112_india
kdutta, pradeep, prajesh, tanya

Ported the fixes from the relevant bug 645.

Updated the code with only commands.pm file changes.
And the code is compiled successfully.

chroot pack/install_root su - root -c "/ca/bin/tcpdump -h 2>&1|grep version"
tcpdump version 4.5.1
libpcap version 1.7.3
./tools/sign_pack -o ArrayOS-Rel_APV_10_4_0_112_6.array -i ustackupdate.tar.gz -k
tools/click_priv_key.pem
signed package created :ArrayOS-Rel_APV_10_4_0_112_6.array
[root@devrohit rel_apv_10_4_0_112_india]#

Description From Last Updated

Hi Rohit, the 645 fix in is only in 2 files your change looks different. Was the code base different?

tanyatanya

Where else the code makes use of EROUTE_RTS_UPDATE?

prajeshprajesh

Intent here is to create a RTS entry for non SYACK TCP packet. Is this correct?

prajeshprajesh

if you want to update every other packet, then you dont need a check .you can ust use the else …

prajeshprajesh

Is there a code which makees use of EROUTE_RTS_BSD?

prajeshprajesh

can you explain what lock does?

prajeshprajesh
prajesh
  1. Ship It!
  2. 
      
prajesh
  1. 
      
  2. Where else the code makes use of EROUTE_RTS_UPDATE?

    1. usr/src/sys/click/netinet/click_input.c
      usr/src/sys/click/net/click_ether.c

      there are two other files that use EROUTE_RTS_UPDATE, and are included with this comment.

  3. 
      
prajesh
  1. Ignore my shipit.

  2. 
      
rvempati
prajesh
  1. 
      
  2. Intent here is to create a RTS entry for non SYACK TCP packet. Is this correct?

    1. only syn create rts, others do update only

    2. "rts_create" to create or update a routing entry with the flags EROUTE_RTS_BSD | EROUTE_RTS_UPDATE.

  3. 
      
prajesh
  1. 
      
  2. if you want to update every other packet, then you dont need a check .you can ust use the else part?

    1. Reverting the code changes.
      As mentioned, the else part would suffice and already in the code before changing.

  3. 
      
tanya
  1. 
      
  2. Hi Rohit,
    the 645 fix in is only in 2 files your change looks different. Was the code base different?

    1. No, i used the rel_apv_10_7_0 to check the diff.
      And updated in the rel_apv_10_4_0_112_india repo.

  3. 
      
rvempati
prajesh
  1. 
      
  2. Is there a code which makees use of EROUTE_RTS_BSD?

    1. Yes,
      At troubleshooting times from the eroute rules configurations, the EROUTE_RTS_BSD flag is used.
      find_egroup() at 13284 in this file itself.

  3. 
      
rvempati
rvempati
Review request changed

Change Summary:

Updated the review request for commands.pm file

Testing Done:

~  

Updated the code with only commands.pm file changes.

  ~

Updated the code with only commands.pm file changes.

  + And the code is compiled successfully.

   
   

chroot pack/install_root su - root -c "/ca/bin/tcpdump -h 2>&1|grep version"

    tcpdump version 4.5.1
    libpcap version 1.7.3
    ./tools/sign_pack -o ArrayOS-Rel_APV_10_4_0_112_6.array -i ustackupdate.tar.gz -k
    tools/click_priv_key.pem
    signed package created :ArrayOS-Rel_APV_10_4_0_112_6.array
    [root@devrohit rel_apv_10_4_0_112_india]#

prajesh
  1. 
      
  2. can you explain what lock does?

    1. /these must match the definitions in kernelapi/generator/kernelWrapGen.pm/ and one of them is this KAPI_LOCK.
      That CMD_KAPI_LOCK is defined with 0x1000 and is used to prevent the race conditions implying the synchronization/consistency

    2. is this a port from a different fix.?
      How to verify this change will fix the issue ?

  3. 
      
prajesh
  1. Ship It!
  2. 
      
tanya
  1. Ship It!
  2. 
      
rvempati
  1. Ship It!

  2. 
      
Loading...